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_20986729_9032.cpp:16:19: error: '#' is not followed by a macro parameter
 #define FF(i, a, b) for(int i=a; i<b; i++)
                   ^
0_0_20986729_9032.cpp:18:17: error: '#' is not followed by a macro parameter
 #define REP(i, n) for(int i=0; i<n; i++)
                 ^
0_0_20986729_9032.cpp:48:25: error: stray '#' in program
     return x.v[0]*10008+x.v[1]*108+x.v[2];
                         ^
0_0_20986729_9032.cpp:48:40: error: stray '#' in program
     return x.v[0]*10008+x.v[1]*108+x.v[2];
                                        ^
0_0_20986729_9032.cpp:59:31: error: stray '#' in program
             REP(i, 3) y.v[i] += trans[type][i];
                               ^
0_0_20986729_9032.cpp:69:19: error: stray '#' in program
         y.v[type]++;
                   ^
0_0_20986729_9032.cpp:69:24: error: stray '#' in program
         y.v[type]++;
                        ^
0_0_20986729_9032.cpp:91:32: error: stray '#' in program
             y.steps = x.steps + 1;
                                ^
0_0_20986729_9032.cpp: In member function 'void Node::get()':
0_0_20986729_9032.cpp:37:13: error: 'i' was not declared in this scope
         REP(i, 3) scanf("%d", &v[i]);
             ^
0_0_20986729_9032.cpp:37:17: error: 'REP' was not declared in this scope
         REP(i, 3) scanf("%d", &v[i]);
                 ^
0_0_20986729_9032.cpp: In function 'bool move(Node, Node&, int)':
0_0_20986729_9032.cpp:59:17: error: 'i' was not declared in this scope
             REP(i, 3) y.v[i] += trans[type][i];
                 ^
0_0_20986729_9032.cpp:59:21: error: 'REP' was not declared in this scope
             REP(i, 3) y.v[i] += trans[type][i];
                     ^
0_0_20986729_9032.cpp:59:35: error: expected primary-expression before '=' token
             REP(i, 3) y.v[i] += trans[type][i];
                                   ^
0_0_20986729_9032.cpp:67:13: error: 'i' was not declared in this scope
         REP(i, 3) if(y.v[i] < trans[type][i]) return false;
             ^
0_0_20986729_9032.cpp:67:17: error: 'REP' was not declared in this scope
         REP(i, 3) if(y.v[i] < trans[type][i]) return false;
                 ^
0_0_20986729_9032.cpp:69:25: error: lvalue required as unary '&' operand
         y.v[type]++;
                         ^
0_0_20986729_9032.cpp: In function 'bool bfs()':
0_0_20986729_9032.cpp:88:13: error: 'i' was not declared in this scope
         REP(i, 3) if(x.v[i] > 108) return false;
             ^
0_0_20986729_9032.cpp:88:17: error: 'REP' was not declared in this scope
         REP(i, 3) if(x.v[i] > 108) return false;
                 ^
0_0_20986729_9032.cpp: In function 'int main()':
0_0_20986729_9032.cpp:117:13: error: 'i' was not declared in this scope
         REP(i, 3) REP(j, 3) scanf("%d", &trans[i][j]);
             ^
0_0_20986729_9032.cpp:117:17: error: 'REP' was not declared in this scope
         REP(i, 3) REP(j, 3) scanf("%d", &trans[i][j]);
                 ^
0_0_20986729_9032.cpp:128:23: error: reference to 'hash' is ambiguous
                 print(hash(T));
                       ^
0_0_20986729_9032.cpp:46:12: note: candidates are: int hash(Node)
 inline int hash(Node x)
            ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_20986729_9032.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^


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-26 03:53:54, Gzip enabled