QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#486101#6743. water235MaMengQiCompile Error//C++171.2kb2024-07-21 16:17:212024-07-21 16:17:22

Details

answer.code:51:2: error: stray ‘#’ in program
   51 | }#include<bits/stdc++.h>
      |  ^
answer.code:5:1: error: ‘Vector’ does not name a type
    5 | Vector <int> a[1000007];
      | ^~~~~~
answer.code: In function ‘int32_t main()’:
answer.code:11:1: error: ‘a’ was not declared in this scope
   11 | a[i].push_back(0);
      | ^
answer.code:17:10: error: ‘a’ was not declared in this scope
   17 | res+= 1- a[i][1];
      |          ^
answer.code:25:10: error: ‘a’ was not declared in this scope
   25 | res+= 1- a[i][1];
      |          ^
answer.code:33:10: error: ‘a’ was not declared in this scope
   33 | res+= 1- a[1][i];
      |          ^
answer.code:41:10: error: ‘a’ was not declared in this scope
   41 | res+= 1- a[1][i];
      |          ^
answer.code:48:32: error: ‘a’ was not declared in this scope
   48 | for (int j=1;j<=m;j++) cout << a[i][j] << "  ";
      |                                ^
answer.code: At global scope:
answer.code:51:3: error: ‘include’ does not name a type
   51 | }#include<bits/stdc++.h>
      |   ^~~~~~~
answer.code:54:5: error: redefinition of ‘long long int n’
   54 | int n,m;
      |     ^
answer.code:4:5: note: ‘long long int n’ previously declared here
    4 | int n,m;
      |     ^
answer.code:54:7: error: redefinition of ‘long long int m’
   54 | int n,m;
      |       ^
answer.code:4:7: note: ‘long long int m’ previously declared here
    4 | int n,m;
      |       ^
answer.code:55:1: error: ‘Vector’ does not name a type
   55 | Vector <int> a[1000007];
      | ^~~~~~
answer.code:56:9: error: redefinition of ‘int32_t main()’
   56 | int32_t main()
      |         ^~~~
answer.code:6:9: note: ‘int32_t main()’ previously defined here
    6 | int32_t main()
      |         ^~~~
answer.code: In function ‘int32_t main()’:
answer.code:61:1: error: ‘a’ was not declared in this scope
   61 | a[i].push_back(0);
      | ^
answer.code:67:10: error: ‘a’ was not declared in this scope
   67 | res+= 1- a[i][1];
      |          ^
answer.code:75:10: error: ‘a’ was not declared in this scope
   75 | res+= 1- a[i][1];
      |          ^
answer.code:83:10: error: ‘a’ was not declared in this scope
   83 | res+= 1- a[1][i];
      |          ^
answer.code:91:10: error: ‘a’ was not declared in this scope
   91 | res+= 1- a[1][i];
      |          ^
answer.code:98:32: error: ‘a’ was not declared in this scope
   98 | for (int j=1;j<=m;j++) cout << a[i][j] << "  ";
      |                                ^