Submission #768765

#TimeUsernameProblemLanguageResultExecution timeMemory
768765jakobrsCluedo (IOI10_cluedo)C++17
Compilation error
0 ms0 KiB
int Theory();void Solve(){for(char a[]="";--a[Theory(a[1],a[2],a[3])];);}

Compilation message (stderr)

cluedo.cpp:1:40: warning: null character(s) preserved in literal
    1 | int Theory();void Solve(){for(char a[]=" ";--a[Theory(a[1],a[2],a[3])];);}
      |                                        ^
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:1:72: error: too many arguments to function 'int Theory()'
    1 | int Theory();void Solve(){for(char a[]=" ";--a[Theory(a[1],a[2],a[3])];);}
      |                                                                        ^
cluedo.cpp:1:5: note: declared here
    1 | int Theory();void Solve(){for(char a[]=" ";--a[Theory(a[1],a[2],a[3])];);}
      |     ^~~~~~