fork download
  1. #include <stdio.h>
  2.  
  3. void foo(int);
  4.  
  5. int main()
  6. {
  7. foo(66);
  8.  
  9. }
  10.  
  11. void foo(const char* str, int x)
  12. {
  13. printf("%s %d\n", str, x);
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:12:6: error: conflicting types for 'foo'
 void foo(const char* str, int x)
      ^
prog.c:3:6: note: previous declaration of 'foo' was here
 void foo(int);
      ^
stdout
Standard output is empty