koala.cpp: In function 'int main()':
koala.cpp:16:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input.txt", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
koala.cpp: In function 'void grader()':
koala.cpp:111:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&F,&G);
~~~~~^~~~~~~~~~~~~~~
koala.cpp: In function 'void runGame(int)':
koala.cpp:84:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&N,&W);
~~~~~^~~~~~~~~~~~~~~
koala.cpp:86:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&P[i]);
~~~~~^~~~~~~~~~~~
/tmp/ccPCfsaf.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccA1Qq5m.o:koala.cpp:(.text.startup+0x0): first defined here
/tmp/ccPCfsaf.o: In function `playRound(int*, int*)':
grader.cpp:(.text+0x260): multiple definition of `playRound(int*, int*)'
/tmp/ccA1Qq5m.o:koala.cpp:(.text+0x1a0): first defined here
/tmp/ccA1Qq5m.o: In function `runGame(int)':
koala.cpp:(.text+0xe2): undefined reference to `allValues(int, int, int*)'
koala.cpp:(.text+0x147): undefined reference to `minValue(int, int)'
koala.cpp:(.text+0x177): undefined reference to `maxValue(int, int)'
koala.cpp:(.text+0x187): undefined reference to `greaterValue(int, int)'
/tmp/ccPCfsaf.o: In function `runGame(int)':
grader.cpp:(.text+0x137): undefined reference to `minValue(int, int)'
grader.cpp:(.text+0x16b): undefined reference to `allValues(int, int, int*)'
grader.cpp:(.text+0x1bf): undefined reference to `maxValue(int, int)'
grader.cpp:(.text+0x1ef): undefined reference to `greaterValue(int, int)'
collect2: error: ld returned 1 exit status