0_0_13974190_2783.c: In function 'ansmatprint':
0_0_13974190_2783.c:8:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i != N; ++i)
^
0_0_13974190_2783.c:8:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_13974190_2783.c:10:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j != N; ++j)
^
0_0_13974190_2783.c: In function 'matmultiply':
0_0_13974190_2783.c:19:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i != N; ++i)
^
0_0_13974190_2783.c:21:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j != N; ++j)
^
0_0_13974190_2783.c:23:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int k = 0; k != N; ++k)
^
0_0_13974190_2783.c: In function 'main':
0_0_13974190_2783.c:37:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int casenum = 1; casenum != 1+t; ++casenum)
^
0_0_13974190_2783.c:39:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i != 4; ++i)
^
0_0_13974190_2783.c:46:12: error: redefinition of 'i'
for (int i = 0; i != N; ++i)
^
0_0_13974190_2783.c:39:11: note: previous definition of 'i' was here
for(int i = 0; i != 4; ++i)
^
0_0_13974190_2783.c:46:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i != N; ++i)
^
0_0_13974190_2783.c:51:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j != N; ++j)
^
0_0_13974190_2783.c:53:5: error: expected expression before '/' token
// int tmp;
^
0_0_13974190_2783.c:54:5: error: expected expression before '/' token
// scanf("%d", &tmp);
^
0_0_13974190_2783.c:58:3: error: expected expression before '/' token
//cout << endl;
^
0_0_13974190_2783.c:59:12: error: redefinition of 'i'
for (int i = 2; i != 4; ++i)
^
0_0_13974190_2783.c:46:12: note: previous definition of 'i' was here
for (int i = 0; i != N; ++i)
^
0_0_13974190_2783.c:59:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 2; i != 4; ++i)
^
0_0_13974190_2783.c:62:4: error: expected expression before '/' token
//ansmatprint(N);
^
0_0_13974190_2783.c:64:3: error: expected expression before '/' token
//ansmatprint(N);
^
0_0_13974190_2783.c:66:12: error: redefinition of 'i'
for (int i = 0; i != N; ++i)
^
0_0_13974190_2783.c:59:12: note: previous definition of 'i' was here
for (int i = 2; i != 4; ++i)
^
0_0_13974190_2783.c:66:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i != N; ++i)
^
|