记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:9: error: expected expression before '%' token
   scanf(%d , &x);
         ^
/in/foo.c:8:19: warning: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   if(x % 2 == 1)  print("Odd");
                   ^~~~~
/in/foo.c:9:14: error: stray '\357' in program
   else  print("Even");
              ^
/in/foo.c:9:15: error: stray '\274' in program
   else  print("Even");
               ^
/in/foo.c:9:16: error: stray '\210' in program
   else  print("Even");
                ^
/in/foo.c:9:9: error: 'print' undeclared (first use in this function)
   else  print("Even");
         ^~~~~
/in/foo.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:9:17: error: expected ';' before string constant
   else  print("Even");
                 ^~~~~~
/in/foo.c:9:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   else  print("Even");
   ^~~~
/in/foo.c:9:23: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   else  print("Even");
                       ^
/in/foo.c:9:23: error: expected statement before ')' token

信息

递交者
类型
递交
题目
P1491 D. 梅开二度
比赛
2023年新生赛(第三场)
语言
C
递交时间
2023-09-09 21:27:47
评测时间
2023-09-09 21:27:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes