0_0_28684395_19444.cpp: In function 'int main()': 0_0_28684395_19444.cpp:19:28: error: 'k' was not declared in this scope printf("Case #%d: %d\n",k,(a+b)%10); ^