Problem omnomnom
User FIips
Submission Time 2024-12-15 23:34:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp:13:5: error: ‘long long int index’ redeclared as different kind of entity
13 | int index = 1;
| ^~~~~
In file included from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:48,
from omnomnom.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’
61 | index (const char *__s, int __c) __THROW
| ^~~~~
omnomnom.cpp: In function ‘void dfs(long long int)’:
omnomnom.cpp:21:17: error: invalid types ‘long long int [1000000][<unresolved overloaded function type>]’ for array subscript
21 | if(dist[index] < dist[it]) index = it;
| ^
omnomnom.cpp:21:39: error: overloaded function with no contextual type information
21 | if(dist[index] < dist[it]) index = it;
| ^~