fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 0, b = 0;
  6. Scanner input = new Scanner(System.in);
  7. cout<<"a = "<<endl;
  8. a = input.nextInt();
  9.  
  10. cout<<b<<endl;
  11. b = input.nextInt();
  12.  
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:2: error: ‘Scanner’ was not declared in this scope
  Scanner input = new Scanner(System.in);
  ^~~~~~~
prog.cpp:8:6: error: ‘input’ was not declared in this scope
  a = input.nextInt();
      ^~~~~
prog.cpp:8:6: note: suggested alternative: ‘ino_t’
  a = input.nextInt();
      ^~~~~
      ino_t
stdout
Standard output is empty