제출 #342071

#제출 시각아이디문제언어결과실행 시간메모리
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;

}

컴파일 시 표준 에러 (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...