fork(1) download
  1. #include <stdio.h>
  2. // using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int *vptr=NULL;
  7. int a = sizeof(NULL);
  8. cout<<a;
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:2: error: ‘cout’ undeclared (first use in this function)
  cout<<a;
  ^~~~
prog.c:8:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:7: warning: unused variable ‘vptr’ [-Wunused-variable]
  int *vptr=NULL;
       ^~~~
stdout
Standard output is empty