F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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
 }
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 21:23:52, Gzip enabled