Submission #313624

# Submission time Handle Problem Language Result Execution time Memory
313624 2020-10-16T12:17:36 Z Dan4Life Cluedo (IOI10_cluedo) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

void Solve()
{
    int i = 1, j = 1, k = 1, ans = 20;
    while(ans--)
    {
        int x = Solve(i, j, k);
        if(x==1) i++;
        if(x==2) j++;
        if(x==3) k++;
        if(x==0) return;
    }
}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:30: error: too many arguments to function 'void Solve()'
    9 |         int x = Solve(i, j, k);
      |                              ^
cluedo.cpp:4:6: note: declared here
    4 | void Solve()
      |      ^~~~~
cluedo.cpp:9:22: error: void value not ignored as it ought to be
    9 |         int x = Solve(i, j, k);
      |                 ~~~~~^~~~~~~~~