Problem wormholes
User r1r2r3r4
Submission Time 2025-07-02 16:55:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wormholes.cpp: In function ‘int main()’:
wormholes.cpp:17:21: error: a function-definition is not allowed here before ‘{’ token
17 | int time(int x) {
| ^
wormholes.cpp:26:19: error: invalid conversion from ‘int’ to ‘time_t*’ {aka ‘long int*’} [-fpermissive]
26 | cout << time(n-1);
| ~^~
| |
| int
In file included from /usr/include/c++/9/ctime:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:49,
from wormholes.cpp:1:
/usr/include/time.h:75:29: note: initializing argument 1 of ‘time_t time(time_t*)’
75 | extern time_t time (time_t *__timer) __THROW;
| ~~~~~~~~^~~~~~~