(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 #318544

#TimeUsernameProblemLanguageResultExecution timeMemory
318544lucaperjuCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
std::vector<int> coin_flips(std::vector<int> b, int c) { return {find_coin(b) ^ c}; } int find_coin(std::vector<int> b) { int s = 0; for (int i = 0; i < 64; i++) s ^= b[i] * i; return s; }

Compilation message (stderr)

coins.cpp:1:6: error: 'vector' in namespace 'std' does not name a template type
    1 | std::vector<int> coin_flips(std::vector<int> b, int c) {
      |      ^~~~~~
coins.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | std::vector<int> coin_flips(std::vector<int> b, int c) {
coins.cpp:5:20: error: 'vector' is not a member of 'std'
    5 | int find_coin(std::vector<int> b) {
      |                    ^~~~~~
coins.cpp:5:20: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
coins.cpp:5:27: error: expected primary-expression before 'int'
    5 | int find_coin(std::vector<int> b) {
      |                           ^~~