#include <iostream> using namespace std; int main() { register int i = 10; int *a = &i; printf("%d", *a); getchar(); return 0; }
Standard input is empty
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(); ^
Standard output is empty