Problem adjlist
User keresh
Submission Time 2026-10-23 22:38:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int32_t main()’:
adjlist.cpp:16:36: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
16 | for (int ii = 0; ii < adjlist[i].size; ii++){
| ()
adjlist.cpp:19:2: error: expected ‘}’ at end of input
19 | }
| ^
adjlist.cpp:5:16: note: to match this ‘{’
5 | int32_t main (){
| ^