This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"
#define f first
#define s second
using namespace std;
#define int long long
// int x, y, z;
//
//
// int Theory(int a, int b, int c) {
// cout << a << " " << b << " " << c << endl;
// int k;
// cin >> k;
// return k;
// }
void Solve(){
int r;
int a = 1, b = 1, c = 1;
do {
if(r == 1)
a++;
else if(r == 2)
b++;
else if(r == 3)
c++;
r = Theory(a, b, c);
} while(r != 0);
}
// signed main()
// {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
// int tt = 1;
// //cin >> tt;
// while(tt--) {
// cin >> x >> y >> z;
// Solve();
// }
// return 0;
// }
Compilation message (stderr)
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:25:10: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | else if(r == 3)
| ^~
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |