Submission #758279

#TimeUsernameProblemLanguageResultExecution timeMemory
758279JANCARAPANCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define fi first #define se second #define sz(a) (long long) a.size() #define endl '\n' const long long INF = 1e18, MOD = 1e9+7; void Solve() { int i = 1, j = 1, k = 1; for (int t = 0; t < 20; t++) { int ans = Theory(i, j, k); if (ans == 0) return; if (ans == 1) i++; else if (ans == 2) j++; else k++; } } //signed main() { //ios_base::sync_with_stdio(false); //cin.tie(0); //int tt = 1; //cin >> tt; //while (tt--) { //test_case(); //} //return 0; //}

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:14:15: error: 'Theory' was not declared in this scope
   14 |     int ans = Theory(i, j, k);
      |               ^~~~~~