koala.cpp:79:14: error: 'int minValue' redeclared as different kind of entity
79 | int minValue(N, W){
| ^
In file included from koala.cpp:1:
koala.h:6:5: note: previous declaration 'int minValue(int, int)'
6 | int minValue(int N, int W);
| ^~~~~~~~
koala.cpp:90:14: error: 'int maxValue' redeclared as different kind of entity
90 | int maxValue(N, W);
| ^
In file included from koala.cpp:1:
koala.h:7:5: note: previous declaration 'int maxValue(int, int)'
7 | int maxValue(int N, int W);
| ^~~~~~~~
koala.cpp:91:18: error: 'int greaterValue' redeclared as different kind of entity
91 | int greaterValue(N,W);
| ^
In file included from koala.cpp:1:
koala.h:8:5: note: previous declaration 'int greaterValue(int, int)'
8 | int greaterValue(int N, int W);
| ^~~~~~~~~~~~
koala.cpp:92:1: error: 'vector' does not name a type
92 | vector<int> allValues(N,W,P);
| ^~~~~~
koala.cpp: In function 'void grader()':
koala.cpp:123:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
123 | scanf("%d %d",&F,&G);
| ~~~~~^~~~~~~~~~~~~~~
koala.cpp: In function 'void runGame(int)':
koala.cpp:96:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
96 | scanf("%d %d",&N,&W);
| ~~~~~^~~~~~~~~~~~~~~
koala.cpp:98:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
98 | scanf("%d",&P[i]);
| ~~~~~^~~~~~~~~~~~