Submission #768287

# Submission time Handle Problem Language Result Execution time Memory
768287 2023-06-27T21:08:22 Z simene Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#include "grader.h"
void Solve(){int m[],a={1,1,1,1},0;while(a=Theory(m[1],m[2],m[3]))m[a]++;}

Compilation message

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:2:18: error: storage size of 'm' isn't known
    2 | void Solve(){int m[],a={1,1,1,1},0;while(a=Theory(m[1],m[2],m[3]))m[a]++;}
      |                  ^
cluedo.cpp:2:22: error: scalar object 'a' requires one element in initializer
    2 | void Solve(){int m[],a={1,1,1,1},0;while(a=Theory(m[1],m[2],m[3]))m[a]++;}
      |                      ^
cluedo.cpp:2:34: error: expected unqualified-id before numeric constant
    2 | void Solve(){int m[],a={1,1,1,1},0;while(a=Theory(m[1],m[2],m[3]))m[a]++;}
      |                                  ^