fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. register int i = 10;
  7. int *a = &i;
  8. printf("%d", *a);
  9. getchar();
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:18: error: ‘printf’ was not declared in this scope
   printf("%d", *a);
                  ^
prog.cpp:9:11: error: ‘getchar’ was not declared in this scope
   getchar();
           ^
stdout
Standard output is empty