0_0_16394015_24795.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16394015_24795.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16394015_24795.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16394015_24795.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16394015_24795.cpp: In function 'void init()':
0_0_16394015_24795.cpp:22:1: error: expected ';' before 'for'
for (int j = 0; j
^
0_0_16394015_24795.cpp:22:1: error: expected primary-expression before 'for'
0_0_16394015_24795.cpp:22:1: error: expected ')' before 'for'
0_0_16394015_24795.cpp:23:1: error: expected ';' before 'for'
for (int d = 0; d
^
0_0_16394015_24795.cpp:23:1: error: expected primary-expression before 'for'
0_0_16394015_24795.cpp:23:1: error: expected ')' before 'for'
0_0_16394015_24795.cpp:24:1: error: expected ';' before 'for'
for (int k = 0; k
^
0_0_16394015_24795.cpp:24:1: error: expected primary-expression before 'for'
0_0_16394015_24795.cpp:24:1: error: expected ')' before 'for'
0_0_16394015_24795.cpp:25:1: error: expected ';' before 'f'
f[i][j][d][k] = -1;
^
0_0_16394015_24795.cpp:25:19: error: expected ')' before ';' token
f[i][j][d][k] = -1;
^
0_0_16394015_24795.cpp: In function 'int dp(int, int, int, int)':
0_0_16394015_24795.cpp:36:1: error: expected ';' before 'nx'
nx = x + dir[i][0];
^
0_0_16394015_24795.cpp:36:19: error: expected ')' before ';' token
nx = x + dir[i][0];
^
0_0_16394015_24795.cpp:37:14: error: 'i' was not declared in this scope
ny = y + dir[i][1];
^
0_0_16394015_24795.cpp:38:18: error: lvalue required as left operand of assignment
if (nx = n || ny = n)
^
0_0_16394015_24795.cpp:39:1: error: continue statement not within a loop
continue;
^
0_0_16394015_24795.cpp:41:1: error: continue statement not within a loop
continue;
^
0_0_16394015_24795.cpp:43:57: error: 'max' was not declared in this scope
f[x][y][d][k] = max (dp(nx, ny, k, d) + 1, f[x][y][d][k]);
^
0_0_16394015_24795.cpp:44:26: error: 'abs' was not declared in this scope
else if (!k && (abs(i - d) == 2 || abs (i - d) == 6))
^
0_0_16394015_24795.cpp:45:61: error: 'max' was not declared in this scope
f[x][y][d][k] = max (dp(nx, ny, k + 1, i) + 1, f[x][y][d][k]);
^
0_0_16394015_24795.cpp: At global scope:
0_0_16394015_24795.cpp:48:1: error: expected unqualified-id before 'if'
if (f[x][y][d][k] == -1)
^
0_0_16394015_24795.cpp:50:1: error: expected unqualified-id before 'return'
return f[x][y][d][k];
^
0_0_16394015_24795.cpp:51:1: error: expected declaration before '}' token
}
^
|