Submission #377135

# Submission time Handle Problem Language Result Execution time Memory
377135 2021-03-13T03:36:45 Z kevinxiehk Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include "grader.h"
#include "cluedo.h"
void Solve() {
  // TODO: implementation
  a[1]=1,a[2]=1,a[3]=1;
  t=Theory(a[1],a[2],a[3]);
  while(t!=0){
      a[t]++;
      t=Theory(a[1],a[2],a[3]);
  }
  return;
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:5:3: error: 'a' was not declared in this scope
    5 |   a[1]=1,a[2]=1,a[3]=1;
      |   ^
cluedo.cpp:6:3: error: 't' was not declared in this scope
    6 |   t=Theory(a[1],a[2],a[3]);
      |   ^