Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149112 马俊潇 13求n的阶乘 C++ Compile Error 0 MS 0 KB 155 2026-03-07 14:45:05

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,n!=0; cin>>n; for(int i=1;i<=n;i++){ n!=i*i++;} cout<<n!; return 0;}


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:9: error: expected initializer before '!=' token
  int n,n!=0;
         ^
Main.cc:7:12: warning: operation on 'i' may be undefined [-Wsequence-point]
    n!=i*i++;}
            ^
Main.cc:7:5: warning: value computed is not used [-Wunused-value]
    n!=i*i++;}
     ^
Main.cc:8:12: error: expected ';' before '!' token
     cout<