记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:9: error: expected expression before '%' token
    6 |   scanf(%d , &x);
      |         ^
foo.c:8:19: warning: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   if(x % 2 == 1)  print("Odd");
      |                   ^~~~~
      |                   printf
foo.c:9:9: error: 'print\U0000ff08' undeclared (first use in this function); did you mean 'printf'?
    9 |   else  print("Even");
      |         ^~~~~~~
      |         printf
foo.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:16: error: expected ';' before string constant
    9 |   else  print("Even");
      |                ^~~~~~
      |                ;
foo.c:9:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
    9 |   else  print("Even");
      |   ^~~~
foo.c:9:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
    9 |   else  print("Even");
      |                      ^
foo.c:9:22: error: expected statement before ')' token
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1491 D. 梅开二度
语言
C
递交时间
2023-09-09 21:27:37
评测时间
2023-09-09 21:27:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes