koala.cpp: In function 'bool check(int, int)':
koala.cpp:45:21: error: 'n' was not declared in this scope
45 | for(k=0 ; k<n ; k++) b[k]=0;
| ^
koala.cpp:46:11: error: 'a' was not declared in this scope
46 | b[a[i]]=b[a[j]]=100;
| ^
koala.cpp: In function 'void allValues(int, int, int*)':
koala.cpp:54:16: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
54 | sort(a.begin(),a.end(),check);
| ^~~~~
koala.cpp:54:26: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
54 | sort(a.begin(),a.end(),check);
| ^~~
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
14 | }
| ^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:43:1: warning: control reaches end of non-void function [-Wreturn-type]
43 | }
| ^