fork download
  1. #include<stdio.h>
  2. int main( )
  3. {
  4. int i = 0;
  5. int eruption[4] = { 536, 626, 934, 1258 };
  6. printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:);
  7. for(i = 0; i < 4; i++)
  8. printf(“\n%d AD”, eruption[i]);
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:8: error: stray ‘\342’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
        ^
prog.c:6:9: error: stray ‘\200’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
         ^
prog.c:6:10: error: stray ‘\234’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
          ^
prog.c:6:11: error: stray ‘\’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
           ^
prog.c:6:12: error: ‘nThe’ undeclared (first use in this function)
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
            ^~~~
prog.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:17: error: expected ‘)’ before ‘GRIP’
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
                 ^~~~
prog.c:6:86: error: stray ‘\342’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
                                                                                      ^
prog.c:6:87: error: stray ‘\200’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
                                                                                       ^
prog.c:6:88: error: stray ‘\235’ in program
 printf(“\nThe GRIP ice cores suggest massive volcanic eruptions during these years:”);
                                                                                        ^
prog.c:8:8: error: stray ‘\342’ in program
 printf(“\n%d AD”, eruption[i]);
        ^
prog.c:8:9: error: stray ‘\200’ in program
 printf(“\n%d AD”, eruption[i]);
         ^
prog.c:8:10: error: stray ‘\234’ in program
 printf(“\n%d AD”, eruption[i]);
          ^
prog.c:8:11: error: stray ‘\’ in program
 printf(“\n%d AD”, eruption[i]);
           ^
prog.c:8:12: error: ‘n’ undeclared (first use in this function)
 printf(“\n%d AD”, eruption[i]);
            ^
prog.c:8:14: error: ‘d’ undeclared (first use in this function)
 printf(“\n%d AD”, eruption[i]);
              ^
prog.c:8:16: error: expected ‘)’ before ‘AD’
 printf(“\n%d AD”, eruption[i]);
                ^~
prog.c:8:18: error: stray ‘\342’ in program
 printf(“\n%d AD”, eruption[i]);
                  ^
prog.c:8:19: error: stray ‘\200’ in program
 printf(“\n%d AD”, eruption[i]);
                   ^
prog.c:8:20: error: stray ‘\235’ in program
 printf(“\n%d AD”, eruption[i]);
                    ^
prog.c:5:5: warning: unused variable ‘eruption’ [-Wunused-variable]
 int eruption[4] = { 536, 626, 934, 1258 };
     ^~~~~~~~
stdout
Standard output is empty