0_0_26397626_8313.cpp: In function 'int main()': 0_0_26397626_8313.cpp:43:39: error: 'sum' was not declared in this scope now = 0, maxn = -10000000000, sum = 0, pos1 = 0, pos2 = 0; ^