Submission #107374

# Submission time Handle Problem Language Result Execution time Memory
107374 2019-04-23T14:03:53 Z oolimry Koala Game (APIO17_koala) C++14
Compilation error
0 ms 0 KB
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

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;
         ^~