0_0_18156024_17774.cpp: In function 'void solve()': 0_0_18156024_17774.cpp:45:19: error: 'str' was not declared in this scope scanf("\n%c%d", str, &x); ^