fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. cout<<"anh thích em thì em có thích lại anh không? Có nhập 1 Đéo nhập 2";
  7. cin>>n;
  8. if(n==1)
  9. {
  10. cout<<"hh";
  11. }
  12. else
  13. {
  14. cout<<"aa"
  15. }
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:6: error: ‘n’ was not declared in this scope
 cin>>n;
      ^
prog.cpp:15:1: error: expected ‘;’ before ‘}’ token
 }
 ^
stdout
Standard output is empty