Submission #1043114

#TimeUsernameProblemLanguageResultExecution timeMemory
1043114OkassaCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include <iostream>
#include <vector>
#define ll long long
using namespace std ;

void Solve() {
    ll M=1,L=1,W=1,t=0 ;
    ll x=Theory(M,L,W) ;
    if (x==0) {
        return ;
    }else {
        t++ ;
        if (x==1) {
            return 1;
        }else if (x==2) {
            return 2 ;
        }else if (x==3) {
            return 3 ;
        }
    }
}
int main() {
    Solve() ;
    cout << "OK " << t ;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:10: error: 'Theory' was not declared in this scope
    8 |     ll x=Theory(M,L,W) ;
      |          ^~~~~~
cluedo.cpp:14:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
   14 |             return 1;
      |                    ^
cluedo.cpp:16:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
   16 |             return 2 ;
      |                    ^
cluedo.cpp:18:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
   18 |             return 3 ;
      |                    ^
cluedo.cpp: In function 'int main()':
cluedo.cpp:24:22: error: 't' was not declared in this scope; did you mean 'tm'?
   24 |     cout << "OK " << t ;
      |                      ^
      |                      tm