0_0_24127114_11232.cpp: In function 'int main()': 0_0_24127114_11232.cpp:23:3: error: 'sum' was not declared in this scope sum+=a[i]; ^ 0_0_24127114_11232.cpp:26:5: error: 'sum' was not declared in this scope if(sum*100<k) ^