Submission #1214863

#TimeUsernameProblemLanguageResultExecution timeMemory
1214863santi3223Cluedo (IOI10_cluedo)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "cluedo.h" #include "grader.h" using namespace std; #define ll long long #define vl vector<ll> #define vb vector<bool> #define pb push_back #define ff(aa, bb, cc) for(ll aa = bb; aa < cc; aa++) #define pll pair<ll, ll> #define fi first #define se second #define ed "\n" #define all(aaa) aaa.begin(), aaa.end() #define rall(aaa) aaa.rbegin(), aaa.rend() ll MOD = 1e9+7; /* ll A, B, C; ll theory(ll a, ll b, ll c){ ll cc = 3; if(a == A){ cc--; } if(b == B){ cc--; } if(c == C){ cc--; } return cc; } */ void Solve(){ ll a = 1, b = 1, c = 1; ll val = theory(a, b, c); while(val != 0){ if(val == 3){ c++; } else if(val == 2){ b++; } else{ a++; } //cout << a << " " << b << " " << c << ed; val = theory(a, b, c); } } /* int main(){ cin >> A >> B >> C; Solve(); } */

Compilation message (stderr)

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:36:18: error: 'theory' was not declared in this scope; did you mean 'Theory'?
   36 |         ll val = theory(a, b, c);
      |                  ^~~~~~
      |                  Theory