QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#464449#6303. Inversionegypt_ioi2024b_05Compile Error//C++204.2kb2024-07-06 06:43:322024-07-06 06:43:32

Details

answer.code:118:14: error: redefinition of ‘std::vector<int> per’
  118 | vector <int> per;
      |              ^~~
answer.code:16:14: note: ‘std::vector<int> per’ previously defined here
   16 | vector <int> per;
      |              ^~~
answer.code:120:5: error: redefinition of ‘int n’
  120 | int n,calls = 0;
      |     ^
answer.code:18:5: note: ‘int n’ previously declared here
   18 | int n,calls = 0;
      |     ^
answer.code:120:7: error: redefinition of ‘int calls’
  120 | int n,calls = 0;
      |       ^~~~~
answer.code:18:7: note: ‘int calls’ previously defined here
   18 | int n,calls = 0;
      |       ^~~~~
answer.code:121:23: error: redefinition of ‘std::vector<std::vector<int> > v’
  121 | vector <vector <int>> v;
      |                       ^
answer.code:19:23: note: ‘std::vector<std::vector<int> > v’ previously defined here
   19 | vector <vector <int>> v;
      |                       ^
answer.code:123:5: error: redefinition of ‘int qquery(int, int)’
  123 | int qquery(int l,int r){
      |     ^~~~~~
answer.code:21:5: note: ‘int qquery(int, int)’ previously defined here
   21 | int qquery(int l,int r){
      |     ^~~~~~
answer.code:134:5: error: redefinition of ‘int query(int, int)’
  134 | int query(int l,int r){
      |     ^~~~~
answer.code:32:5: note: ‘int query(int, int)’ previously defined here
   32 | int query(int l,int r){
      |     ^~~~~
answer.code:151:5: error: redefinition of ‘int cmp(int, int)’
  151 | int cmp(int f,int s){
      |     ^~~
answer.code:49:5: note: ‘int cmp(int, int)’ previously defined here
   49 | int cmp(int f,int s){
      |     ^~~
answer.code:161:5: error: redefinition of ‘int main()’
  161 | int main(){
      |     ^~~~
answer.code:59:5: note: ‘int main()’ previously defined here
   59 | int main(){
      |     ^~~~