记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:4:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>>’ token
    4 |         cin>>year>>month,
      |            ^~
foo.c:8:12: error: ‘r4’ undeclared (first use in this function); did you mean ‘r400’?
    8 |         if(r4==0)
      |            ^~
      |            r400
foo.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
foo.c:25:9: error: ‘cout’ undeclared (first use in this function)
   25 |         cout<<day<<endl;
      |         ^~~~
foo.c:25:20: error: ‘endl’ undeclared (first use in this function)
   25 |         cout<<day<<endl;
      |                    ^~~~
foo.c:26:17: error: expected ‘;’ before ‘}’ token
   26 |         return 0
      |                 ^
      |                 ;
   27 | }
      | ~                

信息

递交者
类型
递交
题目
A1-3 分支结构练习:月份天数
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-20 00:05:19
评测时间
2024-08-20 00:05:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes