记录详情

Compile Error

foo.cc: In function 'int is_prime(int)':
foo.cc:6:16: error: 'No' was not declared in this scope
         return No;
                ^~
foo.cc:8:16: error: 'Yes' was not declared in this scope
         return Yes;
                ^~~
foo.cc:12:20: error: 'No' was not declared in this scope
             return No;
                    ^~
foo.cc:14:12: error: 'Yes' was not declared in this scope
     return Yes;
            ^~~
foo.cc: In function 'int main()':
foo.cc:21:5: error: 'cin' was not declared in this scope
     cin>>x;
     ^~~
foo.cc:21:5: note: suggested alternative: 'main'
     cin>>x;
     ^~~
     main
foo.cc:24:25: error: 'Yes' was not declared in this scope
         if(is_prime(i)==Yes)
                         ^~~
foo.cc:27:5: error: 'cout' was not declared in this scope
     cout<<op<<endl;
     ^~~~
foo.cc:27:15: error: 'endl' was not declared in this scope
     cout<<op<<endl;
               ^~~~
foo.cc:27:15: note: suggested alternative: 'enum'
     cout<<op<<endl;
               ^~~~
               enum
foo.cc:29:5: error: 'system' was not declared in this scope
     system("pause");
     ^~~~~~

信息

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