제출 #1258346

#제출 시각아이디문제언어결과실행 시간메모리
1258346mohamedboukerche55Cluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include"cluedo.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;
    
}

컴파일 시 표준 에러 (stderr) 메시지

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