QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#856672 | #9807. Make Them Believe | HuangHanSheng | Compile Error | / | / | C++98 | 801b | 2025-01-14 15:09:33 | 2025-01-14 15:09:33 |
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("%s %d",name[i],&power[i]); | ^~~~~ | wscanf answer.code:10:9: error: ‘getchar’ was not declared in this scope 10 | getchar(); | ^~~~~~~ answer.code:2:1: note: ‘getchar’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#include <cstdio>’ 1 | #include <iostream> +++ |+#include <cstdio> 2 | #include <string> answer.code:35:5: error: ‘printf’ was not declared in this scope 35 | printf("%s beats %s\n",name[win],name[lose]); | ^~~~~~ answer.code:35:5: note: ‘printf’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#include <cstdio>’