답안 #107374

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
107374 2019-04-23T14:03:53 Z oolimry 코알라 (APIO17_koala) C++14
컴파일 오류
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;
         ^~