0_0_38438811_18255.cpp: In function 'int main()': 0_0_38438811_18255.cpp:7:36: error: 'str' was not declared in this scope while(~scanf("%s %lf %lf%*c", &str, &num, &price)) ^