Submission #977751

#TimeUsernameProblemLanguageResultExecution timeMemory
977751marinalucaCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "coins.h" #include <ext/rope> /**#pragma GCC optimize ("O4") #pragma GCC optimize ("fast-math") #pragma GCC optimize ("unroll-loops") **/ using namespace std; #define ll long long #define FOR for (int i = 0; i < 64; ++ i) cp ^= i * b[i]; vector <int> coin_flips(vector <int> b, int c){ int cp = c; FOR return cp; } int find_coin(vector <int> b){ int cp = 0; FOR return cp; }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:14:16: error: could not convert 'cp' from 'int' to 'std::vector<int>'
   14 |     FOR return cp;
      |                ^~
      |                |
      |                int