gondola.cpp: In function 'bool valid(int, int*)':
gondola.cpp:6:6: error: ambiguating new declaration of 'bool valid(int, int*)'
bool valid(int n, int vet[]){
^~~~~
In file included from gondola.cpp:2:0:
gondola.h:8:5: note: old declaration 'int valid(int, int*)'
int valid(int n, int inputSeq[]);
^~~~~
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:42:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^