제출 #231574

#제출 시각아이디문제언어결과실행 시간메모리
231574UserIsUndefinedCluedo (IOI10_cluedo)C++14
0 / 100
5 ms256 KiB
#include "grader.h"
#include "cluedo.h"

void Solve(){
   int r;
   int a,b,c = 1;

   while(true){
	  r = Theory(a,b,c);
	  if (r == 0)return;
	  if (r == 1)a++;
	  if (r == 2)b++;
	  if (r == 3)c++;
   }
}

컴파일 시 표준 에러 (stderr) 메시지

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:9:6: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
    r = Theory(a,b,c);
    ~~^~~~~~~~~~~~~~~
cluedo.cpp:9:6: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...