foo.cpp:1:1: error: 'include' does not name a type
foo.cpp:5:1: error: 'map' does not name a type
foo.cpp: In function 'void add(int)':
foo.cpp:7:42: error: 'L' was not declared in this scope
foo.cpp: In function 'int ask(int)':
foo.cpp:8:46: error: 'L' was not declared in this scope
foo.cpp: In function 'int main()':
foo.cpp:12:14: error: 'scanf' was not declared in this scope
foo.cpp:12:51: error: 'Map' was not declared in this scope
foo.cpp:12:101: error: 'Map' was not declared in this scope
foo.cpp:12:180: error: 'printf' was not declared in this scope