제출 #471707

#제출 시각아이디문제언어결과실행 시간메모리
471707iliccmarkoCoins (IOI17_coins)C++14
0 / 100
3 ms1100 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define INF 1000000000 #define LINF 10000000000000000LL #define pb push_back #define all(x) x.begin(), x.end() #define len(s) (int)s.size() #define test_case { int t; cin>>t; while(t--)solve(); } #define single_case solve(); #define line cerr<<"----------"<<endl; #define ios { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cerr.tie(NULL); } #define mod 1000000007LL vector<int> coin_flips(vector<int> b, int c) { int y = c; for(int i = 0;i<64;i++) if(b[i]) y ^= i; b[y] ^= 1; vector<int> ans; for(int i = 0;i<64;i++) ans.pb(b[i]); } int find_coin(vector<int> b) { int y = 0; for(int i = 0;i<64;i++) y ^= b[i]; return y; }

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

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...