记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:15: warning: left operand of comma operator has no effect [-Wunused-value]
  for(int x=2;x<=n,x++);
              ~^~~
/in/foo.cc:32:22: error: expected ';' before ')' token
  for(int x=2;x<=n,x++);
                      ^
/in/foo.cc:32:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int x=2;x<=n,x++);
  ^~~
/in/foo.cc:33:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  {
  ^
/in/foo.cc:34:25: error: 'x' was not declared in this scope
   int flag=isSuperPrime(x);
                         ^

信息

递交者
类型
递交
题目
A5-2 超级素数的个数
比赛
泰院2401程序设计基础作业赛第五场
语言
C++
递交时间
2024-11-18 17:10:38
评测时间
2024-11-18 17:10:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes