제출 #247341

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

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

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