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

Compile Error

pigeons.cpp:6:12: error: non-local lambda expression cannot have a capture-default
6 | {"LAND", [&]() {p++;}}, {"LEAVE", [&]() {p--;}}, {"EVACUATE", [&]() {p=0;}}
| ^
pigeons.cpp:6:37: error: non-local lambda expression cannot have a capture-default
6 | {"LAND", [&]() {p++;}}, {"LEAVE", [&]() {p--;}}, {"EVACUATE", [&]() {p=0;}}
| ^
pigeons.cpp:6:65: error: non-local lambda expression cannot have a capture-default
6 | {"LAND", [&]() {p++;}}, {"LEAVE", [&]() {p--;}}, {"EVACUATE", [&]() {p=0;}}
| ^
pigeons.cpp: In function ‘int main()’:
pigeons.cpp:11:7: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
11 | cin << inp;
| ~~~ ^~ ~~~
| | |
| | int
| std::istream {aka std::basic_is