记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:9: error: 'cin' undeclared (first use in this function)
    6 |         cin>>a>>b;
      |         ^~~
foo.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:12: error: expected '(' before 'a'
    7 |         if a%4==0,b==2;
      |            ^
      |            (
foo.c:7:12: warning: statement with no effect [-Wunused-value]
foo.c:8:24: error: expected ';' before 'if'
    8 |          printf("29/n")
      |                        ^
      |                        ;
    9 |           if b==1||b==3||b==5||b=7||b==8||b==10||b==12;
      |           ~~            
foo.c:10:26: error: expected ';' before 'if'
   10 |            printf("31/n")
      |                          ^
      |                          ;
   11 |                  if b==4||b==6||b==9||b==11;
      |                  ~~       
foo.c:12:30: error: expected ';' at end of input
   12 |                printf("30/n")
      |                              ^
      |                              ;
   13 | 
foo.c:12:16: error: expected declaration or statement at end of input
   12 |                printf("30/n")
      |                ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A1-3 分支结构练习:月份天数
语言
C
递交时间
2023-08-15 11:56:53
评测时间
2023-08-15 11:56:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes