0_0_35794463_31500.cpp: In function 'int main()': 0_0_35794463_31500.cpp:12:30: error: 'str' was not declared in this scope for(i=0,count=0;(str[i]=getchar())!='\n';i++) ^