Banner Home Page DIY Contests Problems Ranklist Status Statistics

View Compilation Error

2_33497_2829110_8236.c: In function 'tow':
2_33497_2829110_8236.c:16:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<=a;i++)
  ^
2_33497_2829110_8236.c:16:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
2_33497_2829110_8236.c:19:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int j=0;j<=b;j++)
   ^
2_33497_2829110_8236.c: In function 'three':
2_33497_2829110_8236.c:46:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<=a;i++)
  ^
2_33497_2829110_8236.c:49:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int j=0;j<=b;j++)
   ^
2_33497_2829110_8236.c:55:8: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
        for(int g=0;g<=c;g++)
        ^