#include <iostream> using namespace std; int main() { cout<<"請輸入姓名:"; cin>>name; cout<<endl<<"歡迎"<<name<<"使用本軟體"<<endl; system("pause") return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:6:10: error: ‘name’ was not declared in this scope cin>>name; ^~~~ prog.cpp:9:5: error: expected ‘;’ before ‘return’ return 0; ^~~~~~
Standard output is empty