记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:9: error: 'cin' was not declared in this scope
         cin>>x;
         ^~~
/in/foo.cc:6:14: error: 'sqrt' was not declared in this scope
  int n=sqrt(x);
              ^
/in/foo.cc:11:4: error: 'cout' was not declared in this scope
    cout<<x1+x/x1<<endl; 
    ^~~~
/in/foo.cc:11:19: error: 'endl' was not declared in this scope
    cout<<x1+x/x1<<endl; 
                   ^~~~

信息

递交者
类型
递交
题目
A3-1 素数专题:因子的和
语言
C++
递交时间
2021-01-09 21:05:34
评测时间
2021-01-09 21:05:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes