记录详情

Compile Error

foo.cc:10:11: error: extended character ” is not valid in an identifier
   10 |     cout<<”Yes”<<endl;
      |           ^
foo.cc:10:11: error: extended character ” is not valid in an identifier
foo.cc:13:11: error: extended character ” is not valid in an identifier
   13 |     cout<<”No”<<endl;
      |           ^
foo.cc:13:11: error: extended character ” is not valid in an identifier
foo.cc:20:7: error: extended character ” is not valid in an identifier
   20 | cout<<”Yes”<<endl;
      |       ^
foo.cc:20:7: error: extended character ” is not valid in an identifier
foo.cc: In function 'int main()':
foo.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>n;
      | ^~~
foo.cc:7:1: error: 'While' was not declared in this scope
    7 | While(k<n)
      | ^~~~~
foo.cc:19:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   19 | if(s=0)
      |    ~^~
foo.cc:20:1: error: 'cout' was not declared in this scope
   20 | cout<<”Yes”<<endl;
      | ^~~~
foo.cc:20:7: error: '\U0000201dYes\U0000201d' was not declared in this scope
   20 | cout<<”Yes”<<endl;
      |       ^~~~~
foo.cc:20:14: error: 'endl' was not declared in this scope
   20 | cout<<”Yes”<<endl;
      |              ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-2 素数专题:素数判断
比赛
2022年迎新赛(第一场)
语言
C++
递交时间
2022-08-15 16:48:06
评测时间
2022-08-15 16:48:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes