QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#633104 | #7029. Xu Xiake in Henan Province | GuanYunchang | Compile Error | / | / | C++20 | 929b | 2024-10-12 14:33:31 | 2024-10-12 14:33:31 |
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:16:14: error: ‘scanf’ was not declared in this scope 16 | for (scanf("%d", &Case); Case; Case --) | ^~~~~ answer.code:22:37: error: ‘stdin’ was not declared in this scope 22 | fgets(s, M, stdin); | ^~~~~ answer.code:5:1: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? 4 | #include <algorithm> +++ |+#include <cstdio> 5 | using namespace std; answer.code:22:25: error: ‘fgets’ was not declared in this scope 22 | fgets(s, M, stdin); | ^~~~~ answer.code:37:50: error: expected primary-expression before ‘)’ token 37 | else if () | ^ answer.code:38:33: error: expected primary-expression before ‘}’ token 38 | } | ^