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

Compile Error

wormholes.cpp: In function ‘int main()’:
wormholes.cpp:9:5: error: expected initializer before ‘for’
9 | for (int i=0; i<255; i++) {
| ^~~
wormholes.cpp:9:19: error: ‘i’ was not declared in this scope
9 | for (int i=0; i<255; i++) {
| ^
wormholes.cpp:15:9: error: ‘out’ was not declared in this scope
15 | out[wpos2] = wpos;
| ^~~
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 worm