记录详情

Compile Error

foo.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:6:15: error: 'cin' was not declared in this scope
    6 |         int b;cin>>a>>b;
      |               ^~~
foo.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<"YES"<<;
      |         ^~~~
foo.cc:8:22: error: expected primary-expression before ';' token
    8 |         cout<<"YES"<<;
      |                      ^
foo.cc:5:20: warning: unused variable 'cnt' [-Wunused-variable]
    5 |     unsigned int a,cnt=0;
      |                    ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1229 A 阅读程序
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 21:20:18
评测时间
2022-08-21 21:20:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes