记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:4: error: 'cin' was not declared in this scope
    cin>>z;
    ^~~
/in/foo.cc:31:5: error: 'cout' was not declared in this scope
     cout<<z<<" ";
     ^~~~
/in/foo.cc:30:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(a==0)
    ^~
/in/foo.cc:32:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     sum=sum+1;
     ^~~
/in/foo.cc:36:2: error: 'cout' was not declared in this scope
  cout<<sum;
  ^~~~

信息

递交者
类型
递交
题目
A5-1 超级素数判断
比赛
2024-3-15 信息教师练习赛(2)
语言
C++
递交时间
2024-03-16 23:03:40
评测时间
2024-03-16 23:03:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes