gondola.cpp:45:2: error: stray '#' in program
}#include<bits/stdc++.h>
^
gondola.cpp:45:3: error: 'include' does not name a type
}#include<bits/stdc++.h>
^~~~~~~
gondola.cpp:47:11: error: redefinition of 'const int INF'
const int INF=1123456789;
^~~
gondola.cpp:3:11: note: 'const int INF' previously defined here
const int INF=1123456789;
^~~
gondola.cpp:48:14: error: redefinition of 'std::map<int, int> vld'
map<int,int> vld;
^~~
gondola.cpp:4:14: note: 'std::map<int, int> vld' previously declared here
map<int,int> vld;
^~~
gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:50:5: error: redefinition of 'int valid(int, int*)'
int valid(int n,int seq[])
^~~~~
gondola.cpp:6:5: note: 'int valid(int, int*)' previously defined here
int valid(int n,int seq[])
^~~~~
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:82:5: error: redefinition of 'int replacement(int, int*, int*)'
int replacement(int n,int gondolaseq[],int replacementseq[])
^~~~~~~~~~~
gondola.cpp:38:5: note: 'int replacement(int, int*, int*)' previously defined here
int replacement(int n,int gondolaseq[],int replacementseq[])
^~~~~~~~~~~
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:86:5: error: redefinition of 'int countReplacement(int, int*)'
int countReplacement(int n,int inputSeq[])
^~~~~~~~~~~~~~~~
gondola.cpp:42:5: note: 'int countReplacement(int, int*)' previously defined here
int countReplacement(int n,int inputSeq[])
^~~~~~~~~~~~~~~~