编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#3640 | #1007. 这你也敢信? | Compile Error | 0 | 0 ms | 0 K | C / 352 B | Victorzz | 2023-11-25 16:04:27 |
int
编译信息
/sandbox/1/a.c:5:2: warning: implicitly declaring library function 'scanf' with type 'int (const char *restrict, ...)' [-Wimplicit-function-declaration]
scanf("%lld",&n);
^
/sandbox/1/a.c:5:2: note: include the header <stdio.h> or explicitly provide a declaration for 'scanf'
/sandbox/1/a.c:10:4: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration]
printf("YES");
^
/sandbox/1/a.c:10:4: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
/sandbox/1/a.c:13:4: error: expected expression
int x=n%3;
^
/sandbox/1/a.c:14:14: error: use of undeclared identifier 'x'
switch(x)
^
2 warnings and 2 errors generated.