0_0_30370625_8540.cpp: In function 'int main()': 0_0_30370625_8540.cpp:18:22: error: 'x' was not declared in this scope printf("%d %.2f\n",x,1.0/(c[s]+1)); ^