0_0_16986704_1439.cpp: In function 'int main()': 0_0_16986704_1439.cpp:81:17: error: 'tot' was not declared in this scope printf("%d\n",tot); ^