제출 #342074

#제출 시각아이디문제언어결과실행 시간메모리
342074IwanttobreakfreeCluedo (IOI10_cluedo)C++98
컴파일 에러
0 ms0 KiB
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include "grader.h"
#include "cluedo.h"
using namespace std;
void Solve(){
   int r

   r = Theory(1,2,3);
   while (r!=0){

   r = Theory(1,2,3);
}  return;

   r = Theory(3,2,1);
   while (r!=0){

   r = Theory(3,2,1);
}  return;

   r = Theory(4,4,4);
   while (r!=0){

   r = Theory(4,4,4);
}  return;
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:12:4: error: expected initializer before 'r'
   12 |    r = Theory(1,2,3);
      |    ^
cluedo.cpp:13:11: error: 'r' was not declared in this scope
   13 |    while (r!=0){
      |           ^
cluedo.cpp:18:4: error: 'r' was not declared in this scope
   18 |    r = Theory(3,2,1);
      |    ^