제출 #1141519

#제출 시각아이디문제언어결과실행 시간메모리
1141519Saul0906Coins (IOI17_coins)C++20
컴파일 에러
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; }

컴파일 시 표준 에러 (stderr) 메시지

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