Submission #1258344

#TimeUsernameProblemLanguageResultExecution timeMemory
1258344mohamedboukerche55Cluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;


void Solve()
{
    int M = 1 , L = 1 , W = 1;
    while(true)
    {
        int r = Theory(M,L,W); 
        if(r == 0)
        {
            return;
        }
        if(r == 1)
        {
            if(M == 6)
            {
                M = 1;
            }
            else
            {
              M++;
            }
           
        }
        if(r == 2)
        {
          if(L == 10)
          {
              L = 1;
          }
          else
          {
              L++;
          }
        }
        if(r == 3)
        {
            if(W == 6)
            {
                W = 1;
            }
            else
            {
                W++;
            }
        }
    }
    return;
    
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:10:17: error: 'Theory' was not declared in this scope
   10 |         int r = Theory(M,L,W);
      |                 ^~~~~~