Submission #1170831

#TimeUsernameProblemLanguageResultExecution timeMemory
1170831MuhammetKoala Game (APIO17_koala)C++20
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" #include "koala.h" #include "grader.cpp" using namespace std; int minValue(int n, int w) { // TODO: Implement Subtask 1 solution here. // You may leave this function unmodified if you are not attempting this // subtask. int b[n], r[n]; for(int i = 0; i < n; i++) { b[i] = 0; } b[0] = 1; playRound(b, r); for(int i = 0; i < n; i++) { if(r[i] == 0) return i; } return 0; } int maxValue(int n, int w) { // TODO: Implement Subtask 2 solution here. // You may leave this function unmodified if you are not attempting this // subtask. return 0; } int greaterValue(int n, int w) { // TODO: Implement Subtask 3 solution here. // You may leave this function unmodified if you are not attempting this // subtask. return 0; } void allValues(int n, int w, int *p) { if (w == 2*n) { // TODO: Implement Subtask 4 solution here. // You may leave this block unmodified if you are not attempting this // subtask. } else { // TODO: Implement Subtask 5 solution here. // You may leave this block unmodified if you are not attempting this // subtask. } }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccY2OwDZ.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccobDIxq.o:koala.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccY2OwDZ.o: in function `playRound(int*, int*)':
grader.cpp:(.text+0x280): multiple definition of `playRound(int*, int*)'; /tmp/ccobDIxq.o:koala.cpp:(.text+0x40): first defined here
collect2: error: ld returned 1 exit status