gondola.cpp:9:11: error: 'int valid' redeclared as different kind of entity
9 | int valid(n, a){
| ^
In file included from gondola.cpp:2:
gondola.h:8:5: note: previous declaration 'int valid(int, int*)'
8 | int valid(int n, int inputSeq[]);
| ^~~~~
gondola.cpp:9:11: error: 'n' was not declared in this scope
9 | int valid(n, a){
| ^
gondola.cpp:9:14: error: 'a' was not declared in this scope
9 | int valid(n, a){
| ^
gondola.cpp:33:17: error: 'int replacement' redeclared as different kind of entity
33 | int replacement(n, c, d){
| ^
In file included from gondola.cpp:2:
gondola.h:10:5: note: previous declaration 'int replacement(int, int*, int*)'
10 | int replacement(int n, int gondolaSeq[], int replacementSeq[]);
| ^~~~~~~~~~~
gondola.cpp:33:17: error: 'n' was not declared in this scope
33 | int replacement(n, c, d){
| ^
gondola.cpp:33:20: error: 'c' was not declared in this scope
33 | int replacement(n, c, d){
| ^
gondola.cpp:33:23: error: 'd' was not declared in this scope
33 | int replacement(n, c, d){
| ^
gondola.cpp:37:17: error: expected constructor, destructor, or type conversion before '(' token
37 | countReplacement(n, e){
| ^