0_0_26504854_25652.cpp: In function 'int main()': 0_0_26504854_25652.cpp:13:26: error: 'sum' was not declared in this scope int tmp = (int)(tot - sum); ^