Submission #956017

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

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