#include <stdio.h> void foo(int); int main() { foo(66); } void foo(const char* str, int x) { }
Standard input is empty
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);
^
Standard output is empty