0_0_19032192_31097.cpp: In function 'void solve()': 0_0_19032192_31097.cpp:6:17: error: 'n' was not declared in this scope scanf("%d",&n); ^