QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#509867#7109. Traveling on the AxisMaMengQiCompile Error//C++201.6kb2024-08-08 19:20:492024-08-08 19:20:50

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);
      |     ~~~~~^~~~~~~~~~~~~~