Submission #1307608

#TimeUsernameProblemLanguageResultExecution timeMemory
13076083lektraCluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
//#include "grader.h"
//#include "cluedo.h"
#include <bits/stdc++.h>
using namespace std;

// PLEASE I'M TRYING TO QUIT MURDLE AND THIS AINT MAKING IT EASIER
// 20 = 2·10 --> Try two times to guess


void Solve(){
   int r, s; // both respuestas
   int a = 1, b = 1, c = 1;
   while(r != 0){
      r = Theory(a,b,c);
      if(r == 0) return;
      s = Theory(a,b,c);
      if(r == s){
         if(r == 1) a++;
         else if(r == 2) b++;
         else c++;
      }
      else {
         if(r == 1 || s == 1) a++;
         if(r == 2 || s == 2) b++;
         if(r == 3 || s == 3) c++;
      }
   }
   return;
}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:11: error: 'Theory' was not declared in this scope
   14 |       r = Theory(a,b,c);
      |           ^~~~~~