Problem | losingsleep |
---|---|
User | blob |
Submission Time | 2023-12-12 00:16:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
losingsleep.cpp: In function ‘int main()’:
losingsleep.cpp:18:27: error: too many arguments to function ‘void solve()’
18 | int result = solve(n, ans);
| ^
losingsleep.cpp:4:6: note: declared here
4 | void solve(){
| ^~~~~
losingsleep.cpp:18:20: error: void value not ignored as it ought to be
18 | int result = solve(n, ans);
| ~~~~~^~~~~~~~
losingsleep.cpp:19:16: error: expected ‘;’ before ‘}’ token
19 | cout << result
| ^
| ;
20 | }
| ~