Submission #927228

# Submission time Handle Problem Language Result Execution time Memory
927228 2024-02-14T13:21:09 Z vjudge1 Cluedo (IOI10_cluedo) C++11
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

void Theory(int, int, int);

void Solve() {
    for(int i = 1; i <= 6; i++) {
        for(int j = 1; j <= 10; j++) {
            for(int k = 1; k <= 6; k++) {
                if(Theory(i, j, k) == 0) return;
            }
        }
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:10:36: error: invalid operands of types 'void' and 'int' to binary 'operator=='
   10 |                 if(Theory(i, j, k) == 0) return;
      |                    ~~~~~~~~~~~~~~~ ^~ ~
      |                          |            |
      |                          void         int