0_0_26451486_21250.cpp: In function 'int solve()': 0_0_26451486_21250.cpp:82:5: error: expected ',' or ';' before 'for' for(int i = 0; i < n; i++) ^ 0_0_26451486_21250.cpp:82:20: error: 'i' was not declared in this scope for(int i = 0; i < n; i++) ^