QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#509867 | #7109. Traveling on the Axis | MaMengQi | Compile Error | / | / | C++20 | 1.6kb | 2024-08-08 19:20:49 | 2024-08-08 19:20:50 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:50:6: error: redefinition of ‘char s [100010]’ 50 | char s[MAXN]; | ^ answer.code:6:6: note: ‘char s [100010]’ previously declared here 6 | char s[MAXN]; | ^ answer.code:52:6: error: redefinition of ‘void solve()’ 52 | void solve() { | ^~~~~ answer.code:8:6: note: ‘void solve()’ previously defined here 8 | void solve() { | ^~~~~ answer.code:81:5: error: redefinition of ‘int main()’ 81 | int main() { | ^~~~ answer.code:37:5: note: ‘int main()’ previously defined here 37 | int main() { | ^~~~ answer.code: In function ‘void solve()’: answer.code:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%s", s); | ~~~~~^~~~~~~~~ answer.code: In function ‘int main()’: answer.code:39:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 39 | scanf("%d", &tcase); | ~~~~~^~~~~~~~~~~~~~ answer.code: In function ‘void solve()’: answer.code:53:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 53 | scanf("%s", s); | ~~~~~^~~~~~~~~ answer.code: In function ‘int main()’: answer.code:83:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 83 | scanf("%d", &tcase); | ~~~~~^~~~~~~~~~~~~~