0_0_31018911_5057.cpp: In function 'int main()': 0_0_31018911_5057.cpp:29:15: error: 'cmd' was not declared in this scope scanf("%s",cmd+1); ^