Problem xmas
User Vinayak01
Submission Time 2024-02-24 10:07:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘std::map<int, int> invert(std::map<int, int>)’:
xmas.cpp:7:11: error: a function-definition is not allowed here before ‘{’ token
7 | int main(){
| ^
xmas.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
xmas.cpp:4:42: note: to match this ‘{’
4 | map<int,int> invert(const map<int,int> m){
| ^