koala.cpp: In function 'void grader()':
koala.cpp:110:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
110 | scanf("%d %d",&F,&G);
| ~~~~~^~~~~~~~~~~~~~~
koala.cpp: In function 'void runGame(int)':
koala.cpp:83:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
83 | scanf("%d %d",&N,&W);
| ~~~~~^~~~~~~~~~~~~~~
koala.cpp:85:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
85 | scanf("%d",&P[i]);
| ~~~~~^~~~~~~~~~~~
/usr/bin/ld: /tmp/cc2LW1uf.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccE8enti.o:koala.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc2LW1uf.o: in function `playRound(int*, int*)':
grader.cpp:(.text+0x280): multiple definition of `playRound(int*, int*)'; /tmp/ccE8enti.o:koala.cpp:(.text+0x1b0): first defined here
/usr/bin/ld: /tmp/ccE8enti.o: in function `runGame(int)':
koala.cpp:(.text+0xef): undefined reference to `minValue(int, int)'
/usr/bin/ld: koala.cpp:(.text+0x126): undefined reference to `allValues(int, int, int*)'
/usr/bin/ld: koala.cpp:(.text+0x17f): undefined reference to `maxValue(int, int)'
/usr/bin/ld: koala.cpp:(.text+0x197): undefined reference to `greaterValue(int, int)'
/usr/bin/ld: /tmp/cc2LW1uf.o: in function `runGame(int)':
grader.cpp:(.text+0x157): undefined reference to `minValue(int, int)'
/usr/bin/ld: grader.cpp:(.text+0x191): undefined reference to `allValues(int, int, int*)'
/usr/bin/ld: grader.cpp:(.text+0x1d7): undefined reference to `maxValue(int, int)'
/usr/bin/ld: grader.cpp:(.text+0x207): undefined reference to `greaterValue(int, int)'
collect2: error: ld returned 1 exit status