记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:51:22: warning: missing terminating " character
   51 |         while (scanf("%d %d , &y, &m) == 2)
      |                      ^
foo.c:51:22: error: missing terminating " character
   51 |         while (scanf("%d %d , &y, &m) == 2)
      |                      ^~~~~~~~~~~~~~~~~~~~~~
foo.c:53:9: error: expected expression before ‘{’ token
   53 |         {
      |         ^
foo.c:61:43: error: expected ‘)’ before ‘}’ token
   61 |                                  return 0;
      |                                           ^
      |                                           )
   62 | }
      | ~                                          
foo.c:51:15: note: to match this ‘(’
   51 |         while (scanf("%d %d , &y, &m) == 2)
      |               ^
foo.c:62:1: error: expected expression before ‘}’ token
   62 | }
      | ^
foo.c:48:13: warning: unused variable ‘m’ [-Wunused-variable]
   48 |         int m = 0; //月
      |             ^
foo.c:47:13: warning: unused variable ‘y’ [-Wunused-variable]
   47 |         int y = 0; //年
      |             ^

信息

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