记录详情

Compile Error

/in/foo.c: In function 'daysFromYearStart':
/in/foo.c:11:9: warning: 'main' is normally a non-static function [-Wmain]
     int main() {
         ^~~~
/in/foo.c: In function 'main':
/in/foo.c:15:24: error: stray '\345' in program
     scanf("%d %d %d", &年, &月, &日);
                        ^
/in/foo.c:15:25: error: stray '\271' in program
     scanf("%d %d %d", &年, &月, &日);
                         ^
/in/foo.c:15:26: error: stray '\264' in program
     scanf("%d %d %d", &年, &月, &日);
                          ^
/in/foo.c:15:27: error: expected expression before ',' token
     scanf("%d %d %d", &年, &月, &日);
                           ^
/in/foo.c:15:30: error: stray '\346' in program
     scanf("%d %d %d", &年, &月, &日);
                              ^
/in/foo.c:15:31: error: stray '\234' in program
     scanf("%d %d %d", &年, &月, &日);
                               ^
/in/foo.c:15:32: error: stray '\210' in program
     scanf("%d %d %d", &年, &月, &日);
                                ^
/in/foo.c:15:36: error: stray '\346' in program
     scanf("%d %d %d", &年, &月, &日);
                                    ^
/in/foo.c:15:37: error: stray '\227' in program
     scanf("%d %d %d", &年, &月, &日);
                                     ^
/in/foo.c:15:38: error: stray '\245' in program
     scanf("%d %d %d", &年, &月, &日);
                                      ^
/in/foo.c: In function 'daysFromYearStart':
/in/foo.c:21:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:21:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
At top level:
/in/foo.c:11:9: warning: 'main' defined but not used [-Wunused-function]
     int main() {
         ^~~~

信息

递交者
类型
递交
题目
A1-4 分支结构练习:今年过去了多少天
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-16 12:14:09
评测时间
2024-08-16 12:14:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes