0_0_31220157_19819.cpp: In function 'int main()': 0_0_31220157_19819.cpp:10:7: error: 'sum' was not declared in this scope sum=maxn=0; ^