0_0_29899832_28097.c:5:1: error: unknown type name 'using'
using namespace std;
^
0_0_29899832_28097.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_29899832_28097.c: In function 'main':
0_0_29899832_28097.c:16:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=20;i++)
^
0_0_29899832_28097.c:16:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29899832_28097.c:21:10: error: redefinition of 'i'
for(int i=1;i<=20;i++)
^
0_0_29899832_28097.c:16:10: note: previous definition of 'i' was here
for(int i=1;i<=20;i++)
^
0_0_29899832_28097.c:21:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=20;i++)
^
0_0_29899832_28097.c:23:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=2;j<=i-2;j++)
^
0_0_29899832_28097.c:28:10: error: redefinition of 'i'
for(int i=3;i<=20;i++)
^
0_0_29899832_28097.c:21:10: note: previous definition of 'i' was here
for(int i=1;i<=20;i++)
^
0_0_29899832_28097.c:28:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=3;i<=20;i++)
^
0_0_29899832_28097.c:35:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<=t-1;i++)
^
|