fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout<<"請輸入姓名:";
  6. cin>>name;
  7. cout<<endl<<"歡迎"<<name<<"使用本軟體"<<endl;
  8. system("pause")
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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;
     ^~~~~~
stdout
Standard output is empty