gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:51:9: warning: unused variable 'j' [-Wunused-variable]
int j = 0, MAXin = 0, last = 0;
^
gondola.cpp:28:7: warning: unused variable 'len' [-Wunused-variable]
int len = 0, idx = 0, av = 0, MAX = 0, MAXid;
^~~
gondola.cpp:28:25: warning: unused variable 'av' [-Wunused-variable]
int len = 0, idx = 0, av = 0, MAX = 0, MAXid;
^~
gondola.cpp: In function 'long long int pow(long long int, long long int)':
gondola.cpp:79:36: error: 'mod' was not declared in this scope
return ( pow( a, x - 1 ) * a ) % mod;
^~~
gondola.cpp:79:36: note: suggested alternative: 'modf'
return ( pow( a, x - 1 ) * a ) % mod;
^~~
modf
gondola.cpp:81:21: error: 'mod' was not declared in this scope
return ( h * h ) % mod;
^~~
gondola.cpp:81:21: note: suggested alternative: 'modf'
return ( h * h ) % mod;
^~~
modf
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:94:56: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(inputSeq[i] > n)replaced.push_back[inputSeq[i]];
^
gondola.cpp:105:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < replaced.size(); i++){
~~^~~~~~~~~~~~~~~~~