Submission #715493

# Submission time Handle Problem Language Result Execution time Memory
715493 2023-03-27T04:39:05 Z vjudge1 Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"

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

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:4: error: expected ',' or ';' before 'int'
    6 |    int r = Theory(a, b, c);
      |    ^~~
cluedo.cpp:7:10: error: 'r' was not declared in this scope
    7 |    while(r != 0){
      |          ^