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

Submission #1100387

#TimeUsernameProblemLanguageResultExecution timeMemory
1100387akzytrCoins (IOI17_coins)C++17
Compilation error
0 ms0 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { // SUbtask 1 assert(c < 2); b[63] = c; } int find_coin(std::vector<int> b) { // Subtask 1 return b[63]; }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:5:5: error: 'assert' was not declared in this scope
    5 |     assert(c < 2);
      |     ^~~~~~
coins.cpp:2:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
    1 | #include "coins.h"
  +++ |+#include <cassert>
    2 | 
coins.cpp:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^