제출 #956017

#제출 시각아이디문제언어결과실행 시간메모리
956017emad234Cluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"
#include <bits/stdc++.h>
#define ll long long
#define F first
#define S second
#define pii pair<ll, ll>
const ll mod = 1e9 + 7;
const ll mxN = 1e7 + 5;
using namespace std;
void Solve(){
   int i = 1,j = 1,k = 1;
   while(1){
      int th = Theory(i,j,k);
      if(th == 0) return th;
      if(th == 1) i++;
      if(th == 2) j++;
      if(th == 3) k++;
   }
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:15:26: error: return-statement with a value, in function returning 'void' [-fpermissive]
   15 |       if(th == 0) return th;
      |                          ^~