记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:14: warning: comparison between pointer and integer
    8 |         if(op=="+"){
      |              ^~
/in/foo.c:8:14: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/foo.c:10:20: warning: comparison between pointer and integer
   10 |         }else if(op=="-"){
      |                    ^~
/in/foo.c:10:20: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/foo.c:13:5: error: 'cout' undeclared (first use in this function)
   13 |     cout<<"%d\n",R<<endl;
      |     ^~~~
/in/foo.c:13:5: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:13:21: error: 'endl' undeclared (first use in this function)
   13 |     cout<<"%d\n",R<<endl;
      |                     ^~~~
/in/foo.c:13:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   13 |     cout<<"%d\n",R<<endl;
      |                 ^

信息

递交者
类型
递交
题目
3-5 计算器
比赛
2025年春 南师大《程序设计与竞赛》作业赛第三场
语言
C
递交时间
2025-03-22 20:39:19
评测时间
2025-03-22 20:39:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes