Submission #1041126

#TimeUsernameProblemLanguageResultExecution timeMemory
1041126kheiraCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "cluedo.h"
#include "grader.h"
using namespace std; 
 
void solve() {
    int M = 1;
    int L = 1;
    int W = 1;
 
    while (true) {
        int Solve = Theory(M, L, W);
        
        if (Solve == 0) {
            return;
        } 
        else if (Solve == 1) {
            M++; 
        } 
        else if (Solve == 2)
         {
            L++;  
        }
         else if (Solve == 3) {
            W++;  
        }
        if (M > 6) M = 1;
        if (L > 10) L = 1;
        if (W > 6) W = 1;
    }
}
 
int main() {
   
    return 0; 
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccKXqnqO.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJQn2QN.o:cluedo.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccKXqnqO.o: in function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
collect2: error: ld returned 1 exit status