제출 #1011272

#제출 시각아이디문제언어결과실행 시간메모리
1011272ereringCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "cluedo.h"
using namespace std;
void Solve(){
    int r;
    int l1=1,l2=1,l3=1;
    for(int i=0;i<20;i++){
        int x=Theory(l1,l2,l3);
        if(x==0)return;
        if(x==1)l1++;
        if(x==2)l2++;
        if(x==3)l3++;
    }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:8:15: error: 'Theory' was not declared in this scope
    8 |         int x=Theory(l1,l2,l3);
      |               ^~~~~~
cluedo.cpp:5:9: warning: unused variable 'r' [-Wunused-variable]
    5 |     int r;
      |         ^