0_0_17895010_27993.cpp: In function 'int main()': 0_0_17895010_27993.cpp:42:48: error: expected ';' before 'ans' while(cin >> n && n != 0) cout << n << " " ans[n] << endl; ^