Problem pigeons
User Memeathon
Submission Time 2025-02-09 11:03:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pigeons.cpp:4:1: error: ‘unordered_map’ does not name a type
4 | unordered_map<string, function<void()>> commandMap = {
| ^~~~~~~~~~~~~
pigeons.cpp: In function ‘int main()’:
pigeons.cpp:8:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin >> n >> m;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from pigeons.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
pigeons.cpp:11:3: error: ‘commandMap’ was not declared in this scope
11 | commandMap[inp]();
| ^~~~~~~~~~
pigeons.cpp:14:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
14 | cout << "PLAN ACCEPTED";
| ^~~~
| std::cout
In file included from /usr/include/x