Submission #342071

#TimeUsernameProblemLanguageResultExecution timeMemory
342071IwanttobreakfreeCluedo (IOI10_cluedo)C++98
0 / 100
1 ms364 KiB
#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); } if (r == 0) return; while (r!=0){ cin>>M>>L>>W; r = Theory(3,2,1); } if (r == 0) return; while (r!=0){ cin>>M>>L>>W; r = Theory(4,4,4); } if (r == 0) 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...