| Problem | labs |
|---|---|
| User | smartsword |
| Submission Time | 2026-01-19 16:49:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
labs.cpp: In function ‘int main()’:
labs.cpp:19:14: error: no match for ‘operator[]’ (operand types are ‘std::unordered_map<std::__cxx11::basic_string<char>, long long int>’ and ‘long long int’)
19 | a[i] =
| ^
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from labs.cpp:3:
/usr/include/c++/9/bits/unordered_map.h:985:7: note: candidate: ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = long long int; _Hash = std::hash<std::__cxx11::basic_string<char> >