fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. FILE *fp;
  6. int i= 1;
  7. fp = fopen("abc", "w");
  8.  
  9. if (fp == NULL)
  10. printf("\aファイルをオープンできません。\n");
  11. else {
  12. fprintf(fp,“i = %d\n“, i);
  13. fclose(fp);
  14. }
  15.  
  16. return (0);
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:12: error: stray ‘\342’ in program
prog.c:12: error: stray ‘\200’ in program
prog.c:12: error: stray ‘\234’ in program
prog.c:12: error: expected expression before ‘%’ token
prog.c:12: error: stray ‘\’ in program
prog.c:12: error: stray ‘\342’ in program
prog.c:12: error: stray ‘\200’ in program
prog.c:12: error: stray ‘\234’ in program
prog.c:12: warning: format not a string literal and no format arguments
stdout
Standard output is empty