제출 #247173

#제출 시각아이디문제언어결과실행 시간메모리
247173shenxyMouse (info1cup19_mouse)C++14
컴파일 에러
0 ms0 KiB
#include "grader.h" #include <algorithm> #include <vector> using namespace std; void solve(int N) { vector<int> a; for (int i = 1; i <= N; ++i) a.push_back(i); while (true) { if (query(a) == N) return 0; next_permutation(a.begin(), a.end()); } }

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

mouse.cpp: In function 'void solve(int)':
mouse.cpp:9:32: error: return-statement with a value, in function returning 'void' [-fpermissive]
      if (query(a) == N) return 0;
                                ^