Submission #107374

#TimeUsernameProblemLanguageResultExecution timeMemory
107374oolimryKoala Game (APIO17_koala)C++14
Compilation error
0 ms0 KiB
fill(B,B+N,0); B[0] = 1; B[1] = 1; playRound(B,R); if(R[0] == 0) return 1; if(R[1] == 0) return 0;

Compilation message (stderr)

koala.cpp:1:5: error: expected constructor, destructor, or type conversion before '(' token
 fill(B,B+N,0);
     ^
koala.cpp:2:9: error: 'B' does not name a type
         B[0] = 1;
         ^
koala.cpp:3:9: error: 'B' does not name a type
         B[1] = 1;
         ^
koala.cpp:4:18: error: expected constructor, destructor, or type conversion before '(' token
         playRound(B,R);
                  ^
koala.cpp:5:9: error: expected unqualified-id before 'if'
         if(R[0] == 0) return 1;
         ^~
koala.cpp:6:9: error: expected unqualified-id before 'if'
         if(R[1] == 0) return 0;
         ^~