记录详情

Compile Error

foo.cc: In function 'int findmax(int*)':
foo.cc:8:16: error: 'n' was not declared in this scope
  for(int i=0;i<n;i++)
                ^
foo.cc:10:1: error: expected primary-expression before '}' token
 }
 ^
foo.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
foo.cc: In function 'int main()':
foo.cc:34:8: error: 'strlen' was not declared in this scope
  int n=strlen(prime);
        ^~~~~~
foo.cc:34:8: note: suggested alternative: 'mbrlen'
  int n=strlen(prime);
        ^~~~~~
        mbrlen
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
5-5 统计素数因子
比赛
2020苏青奥赛集训营(2021-4-3假期作业)
语言
C++
递交时间
2021-04-03 13:23:13
评测时间
2021-04-03 13:23:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes