| Problem | labs |
|---|---|
| User | Feiyang |
| Submission Time | 2025-06-18 16:51:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
labs.cpp: In function ‘int main()’:
labs.cpp:9:24: error: ‘n’ was not declared in this scope
9 | for(int i = 0; i < n; i++){
| ^
labs.cpp:13:24: error: expected primary-expression before ‘;’ token
13 | cin>>name>>;
| ^
labs.cpp:15:35: error: no matching function for call to ‘std::map<std::__cxx11::basic_string<char>, int>::count(int&)’
15 | int count=m.count(name)
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from labs.cpp:1:
/usr/include/c++/9/bits/stl_map.h:1214:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::size_type std::map<_Key, _Tp, _Compare, _Alloc>::count(const key_type&) const [with _Key = std::__cxx11::basic_string<char>; _Tp = int; _Compare = std: