koala.cpp: In function 'int minValue(int, int)':
koala.cpp:8:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<N;i++)B[i]=0; B[0]=1;
^~~
koala.cpp:8:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=1;i<N;i++)B[i]=0; B[0]=1;
^
koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
koala.cpp: In function 'int allValues(int, int, int)':
koala.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/tmp/ccO9sLXI.o: In function `runGame(int)':
grader.cpp:(.text+0x16b): undefined reference to `allValues(int, int, int*)'
collect2: error: ld returned 1 exit status