Submission #342074

# Submission time Handle Problem Language Result Execution time Memory
342074 2021-01-01T09:59:01 Z Iwanttobreakfree Cluedo (IOI10_cluedo) C++
Compilation error
0 ms 0 KB
#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;
}

Compilation message

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);
      |    ^