Problem littlejohnny1
User jamallikestocode
Submission Time 2026-08-24 16:21:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

littlejohnny1.cpp: In function ‘int main()’:
littlejohnny1.cpp:13:27: error: ‘target’ was not declared in this scope
13 | if (data.find(target) == data.end()) {
| ^~~~~~
littlejohnny1.cpp:15:35: error: request for member ‘find’ in ‘command’, which is of non-class type ‘ll’ {aka ‘long long int’}
15 | auto it = command.find(target);
| ^~~~
littlejohnny1.cpp:16:40: error: no matching function for call to ‘std::map<long long int, long long int>::insert(<brace-enclosed initializer list>)’
16 | data.insert({target, 0});
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from littlejohnny1.cpp:3:
/usr/include/c++/9/bits/stl_map.h:627:7: note: candidate: ‘std::map<_Key, _Tp, _Comp