QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#94134 | #5673. Cornhole | ZhangYiDe | Compile Error | / | / | C++98 | 345b | 2023-04-05 14:13:47 | 2023-04-05 14:13:48 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:9:9: error: ‘scanf’ was not declared in this scope; did you mean ‘wscanf’? 9 | scanf("%d %d", &n1.h, &n1.b); | ^~~~~ | wscanf answer.code:14:17: error: ‘printf’ was not declared in this scope 14 | printf("1 %d\n", s1 - s2); | ^~~~~~ answer.code:2:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? 1 | #include<iostream> +++ |+#include <cstdio> 2 | using namespace std; answer.code:16:17: error: ‘printf’ was not declared in this scope 16 | printf("NO SCORE\n"); | ^~~~~~ answer.code:16:17: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:18:17: error: ‘printf’ was not declared in this scope 18 | printf("2 %d\n", s2 - s1); | ^~~~~~ answer.code:18:17: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?