Problem | shops |
---|---|
User | Kiameimon |
Submission Time | 2024-03-19 07:49:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shops.cpp: In function ‘int dfs(int)’:
shops.cpp:29:14: error: request for member ‘first’ in ‘cur’, which is of non-class type ‘int’
29 | if(vis[cur.first]) continue;
| ^~~~~
shops.cpp:30:11: error: request for member ‘first’ in ‘cur’, which is of non-class type ‘int’
30 | vis[cur.first] = 1;
| ^~~~~
shops.cpp: In function ‘void findans(int)’:
shops.cpp:45:9: error: no match for ‘operator[]’ (operand types are ‘std::bitset<500000>’ and ‘pii’ {aka ‘std::pair<int, int>’})
45 | if(vis[cur]) continue;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:66,
from shops.cpp:1:
/usr/include/c++/9/bitset:1163:7: note: candidate: ‘std::bitset<_Nb>::reference std::bitset<_Nb>::operator[](std::size_t) [with long unsigned int _Nb = 500000; std::size_t = long unsigned int]’
1163 | operator[](size_t __position)
|