제출 #1132178

#제출 시각아이디문제언어결과실행 시간메모리
1132178finalventureCluedo (IOI10_cluedo)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"

using namespace std;

void Solve(){
   int r;
   vector<int> arr(4, 1);
   int x = Theory(arr[1], arr[2], arr[3]);
   while(x)
   {
      x = Theory(arr[1], arr[2], arr[3]);
      ++arr[x];
   }
   return arr[2];
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:16:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   16 |    return arr[2];
      |                ^