Submission #1141519

#TimeUsernameProblemLanguageResultExecution timeMemory
1141519Saul0906Coins (IOI17_coins)C++20
Compilation error
0 ms0 KiB
#include "coins.h" #include <bits/stdc++.h> #define pii pair<int, int> #define rep(a,b,c) for(int a=b; a<c; a++) #define repr(a,b,c) for(int a=b-1; a>c-1; a--) #define repa(a,b) for(auto a:b) #define all(a) a.begin(), a.end() #define fi first #define se second #define mid ((l+r+1)>>1) #define pb push_back using namespace std; using vi = vector<int>; vi coin_flips(vi b, int c) { int x=0; rep(i,0,64) x^=(b[i]*i); return {x^c} } int find_coin(vi b) { int x=0; rep(i,0,64) x^=(b[i]*i); return x; }

Compilation message (stderr)

coins.cpp: In function 'vi coin_flips(vi, int)':
coins.cpp:20:21: error: expected ';' before '}' token
   20 |         return {x^c}
      |                     ^
      |                     ;
   21 | }
      | ~