제출 #578524

#제출 시각아이디문제언어결과실행 시간메모리
578524zaneyuCoins (IOI17_coins)C++14
0 / 100
3 ms1088 KiB
#include "coins.h" #define REP(i,n) for(int i=0;i<n;i++) std::vector<int> coin_flips(std::vector<int> b, int c) { REP(i,64){ if(b[i]) c^=i; } b[c]^=1; } int find_coin(std::vector<int> b) { int a=0; REP(i,64) a^=b[i]; return a; }

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

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
#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...