fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int numbers[4] = { 22, 33, 44, 55 };
  5. for(i = 0; i < 4; i++)
  6. printf(ā€œ%dā€, numbers[i]);
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:5: error: ‘i’ undeclared (first use in this function)
 for(i = 0; i < 4; i++)
     ^
prog.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:8: error: stray ‘\342’ in program
 printf(“%d”, numbers[i]);
        ^
prog.c:6:9: error: stray ‘\200’ in program
 printf(“%d”, numbers[i]);
         ^
prog.c:6:10: error: stray ‘\234’ in program
 printf(“%d”, numbers[i]);
          ^
prog.c:6:11: error: expected expression before ‘%’ token
 printf(“%d”, numbers[i]);
           ^
prog.c:6:13: error: stray ‘\342’ in program
 printf(“%d”, numbers[i]);
             ^
prog.c:6:14: error: stray ‘\200’ in program
 printf(“%d”, numbers[i]);
              ^
prog.c:6:15: error: stray ‘\235’ in program
 printf(“%d”, numbers[i]);
               ^
prog.c:4:6: warning: unused variable ‘numbers’ [-Wunused-variable]
  int numbers[4] = { 22, 33, 44, 55 };
      ^~~~~~~
stdout
Standard output is empty