0_0_35622756_18232.cpp: In function 'int main()': 0_0_35622756_18232.cpp:37:40: error: 'rate' was not declared in this scope printf("%s %d\n",s[i].name,rate); ^