fork download
  1. int main()
  2. {
  3. int x = 0;
  4. int x = x;
  5. return 0;
  6. }
Compilation error #stdin compilation error #stdout 0s 3408KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:4:6: error: redeclaration of 'int x'
  int x = x;
      ^
prog.cpp:3:6: note: 'int x' previously declared here
  int x = 0;
      ^
stdout
Standard output is empty