Submission #367329

# Submission time Handle Problem Language Result Execution time Memory
367329 2021-02-16T21:48:28 Z Limay123 Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#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++;
        }
    }
}

Compilation message

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