Submission #313623

#TimeUsernameProblemLanguageResultExecution timeMemory
313623Dan4LifeCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

void Solve()
{
    int i = 1, j = 1; k = 1;
    int 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 (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:6:23: error: 'k' was not declared in this scope
    6 |     int i = 1, j = 1; k = 1;
      |                       ^