Submission #1041132

#TimeUsernameProblemLanguageResultExecution timeMemory
1041132kheiraCluedo (IOI10_cluedo)C++14
Compilation error
0 ms0 KiB
#include "cluedo.h"
#include "grader.h"
using namespace std; 
 
int main() {
    int M = 1;
    int L = 1;
    int W = 1;
 
    while (true) {
        int Solve = Theory(M, L, W);
        
        if (Solve == 0) {
            return;
        } 
        else if (Solve == 1) {
            M++; 
        } 
        else if (Solve == 2)
         {
            L++;  
        }
         else if (Solve == 3) {
            W++;  
        }
        if (M > 6) M = 1;
        if (L > 10) L = 1;
        if (W > 6) W = 1;
    }
}
 

Compilation message (stderr)

cluedo.cpp: In function 'int main()':
cluedo.cpp:14:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |             return;
      |             ^~~~~~