Problem | iroha |
---|---|
User | n1k1trh |
Submission Time | 2025-08-12 14:41:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
iroha.cpp: In function ‘long long int dfs(const long long int&)’:
iroha.cpp:25:17: error: invalid types ‘bool[const long long int]’ for array subscript
25 | if(visited[n]) return 0;
| ^
iroha.cpp:27:18: error: invalid types ‘bool[const long long int]’ for array subscript
27 | visited[n] = true;
| ^
iroha.cpp: In function ‘int main()’:
iroha.cpp:35:9: error: request for member ‘assign’ in ‘visited’, which is of non-class type ‘bool’
35 | visited.assign(n + 1, false);
| ^~~~~~
iroha.cpp:39:22: error: invalid types ‘bool[long long int]’ for array subscript
39 | if(!visited[i]) {sizee.pb(dfs(i));}
| ^