제출 #1300479

#제출 시각아이디문제언어결과실행 시간메모리
1300479m.zeeshanrashid곤돌라 (IOI14_gondola)C++20
컴파일 에러
0 ms0 KiB
#include <stdio.h>
#include <assert.h>
#include "gondola.h"
#include "gondola.cpp"

int gondolaSequence[100001];
int replacementSequence[250001];

int main()
{
  int i, n, tag;
  int nr; 
  assert(scanf("%d", &tag)==1);
  assert(scanf("%d", &n)==1);
  for(i=0;i< n;i++)
    assert( scanf("%d", &gondolaSequence[i]) ==1);
  
  switch (tag){
  case 1: case 2: case 3:
    printf("%d\n", valid(n, gondolaSequence));
    break;

  case 4: case 5: case 6:
    nr = replacement(n, gondolaSequence, replacementSequence);
    printf("%d ", nr);
    if (nr > 0)
      {
	for (i=0; i<nr-1; i++)
	  printf("%d ", replacementSequence[i]);
	printf("%d\n", replacementSequence[nr-1]);
      }  
    else printf("\n");
    break;

  case 7: case 8: case 9: case 10:
    printf("%d\n",  countReplacement(n, gondolaSequence));  
    break;
  }

  return 0;
}

컴파일 시 표준 에러 (stderr) 메시지

In file included from gondola.cpp:2,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4,
                 from gondola.cpp:4:
/usr/include/assert.h:35:22: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
   35 | #include <features.h>
      |                      ^
In file included from gondola.cpp:4:
gondola.cpp:1:19: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
    1 | #include <stdio.h>
      |                   ^
gondola.cpp:2:20: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
    2 | #include <assert.h>
      |                    ^
gondola.cpp:3:21: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
    3 | #include "gondola.h"
      |                     ^
gondola.cpp:4:23: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
    4 | #include "gondola.cpp"
      |                       ^
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:6:5: note: 'int gondolaSequence [100001]' previously declared here
    6 | int gondolaSequence[100001];
      |     ^~~~~~~~~~~~~~~
gondola.cpp:7:5: error: redefinition of 'int replacementSequence [250001]'
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:7:5: note: 'int replacementSequence [250001]' previously declared here
    7 | int replacementSequence[250001];
      |     ^~~~~~~~~~~~~~~~~~~
gondola.cpp:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
gondola.cpp:9:5: note: 'int main()' previously defined here
    9 | int main()
      |     ^~~~
gondola.cpp:6:5: error: redefinition of 'int gondolaSequence [100001]'
    6 | int gondolaSequence[100001];
      |