Submission #1041109

#TimeUsernameProblemLanguageResultExecution timeMemory
1041109kheiraCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "cluedo.h"
#include <iostream>
using namespace std; 
int Theory(int M, int L, int W) {
    cin >> M >> L >> W;
    return 0; 
     }
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() {
    solve();
    return 0; 
}

Compilation message (stderr)

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