fork download
  1. int foo( int bar )
  2. {
  3. int bar = 0;
  4. return bar;
  5. }
  6.  
  7. int main()
  8. {
  9. return foo(1);
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘foo’:
prog.c:3: error: ‘bar’ redeclared as different kind of symbol
prog.c:1: error: previous definition of ‘bar’ was here
stdout
Standard output is empty