0_0_14285947_19275.cpp: In function 'int main()': 0_0_14285947_19275.cpp:54:58: error: 'cas' was not declared in this scope printf("Case %d: The total value of the hook is %d.\n",cas , sum[1]); ^