QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#96823 | #6128. Flippy Sequence | MaMengQi | Compile Error | / | / | C++98 | 821b | 2023-04-15 16:46:23 | 2023-04-15 16:46:23 |
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:58:25: error: ‘printf’ was not declared in this scope 58 | printf("0\n"); | ^~~~~~ answer.code:3:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? 2 | #include<cmath> +++ |+#include <cstdio> 3 | using namespace std; answer.code:63:41: error: ‘printf’ was not declared in this scope 63 | printf("%d\n",2*(a[0]-1)); | ^~~~~~ answer.code:63:41: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:65:41: error: ‘printf’ was not declared in this scope 65 | printf("0\n"); | ^~~~~~ answer.code:65:41: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:70:41: error: ‘printf’ was not declared in this scope 70 | printf("6\n"); | ^~~~~~ answer.code:70:41: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:74:41: error: ‘printf’ was not declared in this scope 74 | printf("0\n"); | ^~~~~~ answer.code:74:41: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?