fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("brah");
  5. int x;
  6. int y;
  7. int suma;
  8. float pi;
  9. suma=x+y;
  10. printf(suma)
  11. return 0;
  12.  
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:10:9: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
  printf(suma)
         ^
In file included from prog.c:1:0:
/usr/include/stdio.h:362:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^
prog.c:11:2: error: expected ';' before 'return'
  return 0;
  ^
prog.c:8:8: warning: unused variable 'pi' [-Wunused-variable]
  float pi;
        ^
stdout
Standard output is empty