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 <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include "grader.h"
#include "cluedo.h"
using namespace std;
void Solve(){
int r,M,L,W;
while (r!=0){
cin>>M>>L>>W;
r = Theory(1,2,3);
} return;
while (r!=0){
cin>>M>>L>>W;
r = Theory(3,2,1);
} return;
while (r!=0){
cin>>M>>L>>W;
r = Theory(4,4,4);
} return;
}
Compilation message (stderr)
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:11:12: warning: 'r' is used uninitialized in this function [-Wuninitialized]
11 | while (r!=0){
| ~^~~
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |