제출 #367329

#제출 시각아이디문제언어결과실행 시간메모리
367329Limay123Cluedo (IOI10_cluedo)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; void Solve(){ int as = 1, l = 1, a = 1; int pista = Theory(as,l,a); if(n == 0){ return; } else{ if(n == 1){ as++; } else if(n == 2){ l++; } else if(n == 3){ a++; } } }

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:16: error: 'Theory' was not declared in this scope
    6 |    int pista = Theory(as,l,a);
      |                ^~~~~~
cluedo.cpp:8:8: error: 'n' was not declared in this scope
    8 |     if(n == 0){
      |        ^
cluedo.cpp:6:8: warning: unused variable 'pista' [-Wunused-variable]
    6 |    int pista = Theory(as,l,a);
      |        ^~~~~