0_0_20108212_29916.cpp: In function 'int main()': 0_0_20108212_29916.cpp:7:11: error: 'cin' was not declared in this scope while(cin>>n&&n!=-1) ^