Submission #1132178

#TimeUsernameProblemLanguageResultExecution timeMemory
1132178finalventureCluedo (IOI10_cluedo)C++17
Compilation error
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];
}

Compilation message (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];
      |                ^