fork download
  1. #include <stdio.h>
  2.  
  3. int funcao() { printf("ok"); return 0; }
  4. int funcao2(void) { printf("ok"); return 0; }
  5. int main(void) {
  6. funcao(1, 2);
  7. funcao2(1, 2);
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/138582/101
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7:2: error: too many arguments to function ‘funcao2’
  funcao2(1, 2);
  ^~~~~~~
prog.c:4:5: note: declared here
 int funcao2(void) { printf("ok"); return 0; }
     ^~~~~~~
stdout
Standard output is empty