(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

제출 #1100392

#제출 시각아이디문제언어결과실행 시간메모리
1100392akzytrCoins (IOI17_coins)C++17
컴파일 에러
0 ms0 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { ve<int> turn; if(c==0){ if(b[0] == b[1]){ turn.pb(63); } else{ turn.pb(0); } } else{ if(b[0] == b[1]){ turn.pb(0); } else{ turn.pb(63); } } return b; } int find_coin(std::vector<int> b) { return b[0] != b[1]; }

컴파일 시 표준 에러 (stderr) 메시지

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:4:5: error: 've' was not declared in this scope
    4 |     ve<int> turn;
      |     ^~
coins.cpp:4:8: error: expected primary-expression before 'int'
    4 |     ve<int> turn;
      |        ^~~
coins.cpp:7:13: error: 'turn' was not declared in this scope
    7 |             turn.pb(63);
      |             ^~~~
coins.cpp:10:13: error: 'turn' was not declared in this scope
   10 |             turn.pb(0);
      |             ^~~~
coins.cpp:15:13: error: 'turn' was not declared in this scope
   15 |             turn.pb(0);
      |             ^~~~
coins.cpp:18:13: error: 'turn' was not declared in this scope
   18 |             turn.pb(63);
      |             ^~~~