#include <iostream> using namespace std; int main() { int a = 0, b = 0; Scanner input = new Scanner(System.in); cout<<"a = "<<endl; a = input.nextInt(); cout<<b<<endl; b = input.nextInt(); return 0; }
Standard input is empty
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
Standard output is empty