Problem | wormholes |
---|---|
User | blackpanther |
Submission Time | 2025-07-15 22:52:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wormholes.cpp:7:21: error: invalid declarator before ‘p’
7 | vector pair<int,int>p;
| ^
wormholes.cpp: In function ‘int main()’:
wormholes.cpp:13:9: error: ‘p’ was not declared in this scope
13 | cin>> p[i];
| ^
wormholes.cpp: In function ‘long long int f(long long int)’:
wormholes.cpp:23:30: error: ‘p’ was not declared in this scope
23 | int answer = min(f(n-1)+1,f(p.first(p.second(n))+1);
| ^
wormholes.cpp:24:9: error: ‘answer’ was not declared in this scope
24 | cout<< answer;
| ^~~~~~