제출 #377136

#제출 시각아이디문제언어결과실행 시간메모리
377136kevinxiehkCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"
void Solve() {
  // TODO: implementation
  int a[5];
  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;
}

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

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