记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:12:9: error: 'sqrt' was not declared in this scope
   int n=sqrt(x);
         ^~~~
foo.cc:12:9: note: suggested alternative: 'short'
   int n=sqrt(x);
         ^~~~
         short
foo.cc:27:2: error: 'cout' was not declared in this scope
  cout<<cnt<<endl;
  ^~~~
foo.cc:27:2: note: suggested alternative: 'cnt'
  cout<<cnt<<endl;
  ^~~~
  cnt
foo.cc:27:13: error: 'endl' was not declared in this scope
  cout<<cnt<<endl;
             ^~~~
foo.cc:27:13: note: suggested alternative: 'enum'
  cout<<cnt<<endl;
             ^~~~
             enum

信息

递交者
类型
递交
题目
A3-3 素数专题:素数个数
比赛
2020苏青奥赛集训营(2021-1-31课堂小练)
语言
C++
递交时间
2021-01-31 12:45:24
评测时间
2021-01-31 12:45:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes