记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:16: error: 'o' was not declared in this scope
    6 |         char b=o;
      |                ^
foo.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>a;
      |         ^~~
foo.cc:11:16: error: expected primary-expression before ')' token
   11 |         if(b==+)
      |                ^
foo.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<(a+c)<<endl;
      |         ^~~~
foo.cc:13:22: error: 'endl' was not declared in this scope
   13 |         cout<<(a+c)<<endl;
      |                      ^~~~
foo.cc:15:21: error: expected primary-expression before ')' token
   15 |         else if(b==-)
      |                     ^
foo.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout<<(a-c)<<endl;
      |         ^~~~
foo.cc:17:22: error: 'endl' was not declared in this scope
   17 |         cout<<(a-c)<<endl;
      |                      ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
3-5 计算器
比赛
2023年新生赛(第一场)
语言
C++
递交时间
2023-08-15 17:05:41
评测时间
2023-08-15 17:05:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes