(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.

제출 #1100393

#제출 시각아이디문제언어결과실행 시간메모리
1100393akzytrCoins (IOI17_coins)C++17
컴파일 에러
0 ms0 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { std::vector<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:7:18: error: 'class std::vector<int>' has no member named 'pb'
    7 |             turn.pb(63);
      |                  ^~
coins.cpp:10:18: error: 'class std::vector<int>' has no member named 'pb'
   10 |             turn.pb(0);
      |                  ^~
coins.cpp:15:18: error: 'class std::vector<int>' has no member named 'pb'
   15 |             turn.pb(0);
      |                  ^~
coins.cpp:18:18: error: 'class std::vector<int>' has no member named 'pb'
   18 |             turn.pb(63);
      |                  ^~