0_0_38320152_17666.cpp: In function 'int solve(int)': 0_0_38320152_17666.cpp:46:5: error: a function-definition is not allowed here before '{' token { ^ 0_0_38320152_17666.cpp:58:5: error: expected '}' at end of input } ^