0_0_18946154_14606.cpp: In function 'int main()': 0_0_18946154_14606.cpp:17:8: error: 'i' was not declared in this scope for(i=0;i<cnt;i++){ ^