0_0_28770631_2103.cpp: In function 'int main()': 0_0_28770631_2103.cpp:21:20: error: 'i' was not declared in this scope if(num[i] > 0) ^