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_20979727_23855.cpp:8:22: error: stray '#' in program
 const int M = 500010+7;
                      ^
0_0_20979727_23855.cpp:20:41: error: stray '#' in program
     int made(int x,int y) { return (((x+5555)<<5)+y)%M; }
                                         ^
0_0_20979727_23855.cpp:20:55: error: stray '#' in program
     int made(int x,int y) { return (((x+5555)<<5)+y)%M; }
                                                       ^
0_0_20979727_23855.cpp:24:29: error: stray '#' in program
         Node *o = &memo[tot++];
                             ^
0_0_20979727_23855.cpp:24:34: error: stray '#' in program
         Node *o = &memo[tot++];
                                  ^
0_0_20979727_23855.cpp:41:30: error: stray '#' in program
     return sqrt(sqr(a.x-b.x)+sqr(a.y-b.y));
                              ^
0_0_20979727_23855.cpp:61:35: error: stray '#' in program
         for (int i = 0; i < m; i ++) {
                                   ^
0_0_20979727_23855.cpp:61:40: error: stray '#' in program
         for (int i = 0; i < m; i ++) {
                                        ^
0_0_20979727_23855.cpp:63:18: error: stray '#' in program
             e.x += move[i].x;
                  ^
0_0_20979727_23855.cpp:64:18: error: stray '#' in program
             e.y += move[i].y;
                  ^
0_0_20979727_23855.cpp:65:21: error: stray '#' in program
             e.step ++;
                     ^
0_0_20979727_23855.cpp:65:26: error: stray '#' in program
             e.step ++;
                          ^
0_0_20979727_23855.cpp:82:35: error: stray '#' in program
         for (int i = 0; i < m; i ++) 
                                   ^
0_0_20979727_23855.cpp:82:40: error: stray '#' in program
         for (int i = 0; i < m; i ++) 
                                        ^
0_0_20979727_23855.cpp:8:26: error: expected unqualified-id before numeric constant
 const int M = 500010+7;
                          ^
0_0_20979727_23855.cpp: In member function 'int Hash_table::made(int, int)':
0_0_20979727_23855.cpp:20:44: error: expected ')' before ';' token
     int made(int x,int y) { return (((x+5555)<<5)+y)%M; }
                                            ^
0_0_20979727_23855.cpp:20:44: error: expected ')' before ';' token
0_0_20979727_23855.cpp:20:44: error: expected ')' before ';' token
0_0_20979727_23855.cpp:20:49: error: expected ';' before ')' token
     int made(int x,int y) { return (((x+5555)<<5)+y)%M; }
                                                 ^
0_0_20979727_23855.cpp:20:60: error: expected ';' before ')' token
     int made(int x,int y) { return (((x+5555)<<5)+y)%M; }
                                                            ^
0_0_20979727_23855.cpp: In member function 'void Hash_table::push(point)':
0_0_20979727_23855.cpp:24:32: error: expected ']' before ';' token
         Node *o = &memo[tot++];
                                ^
0_0_20979727_23855.cpp:24:35: error: lvalue required as unary '&' operand
         Node *o = &memo[tot++];
                                   ^
0_0_20979727_23855.cpp:24:38: error: expected primary-expression before ']' token
         Node *o = &memo[tot++];
                                      ^
0_0_20979727_23855.cpp: In function 'double dis(point, point)':
0_0_20979727_23855.cpp:41:31: error: invalid operands of types 'double' and 'int' to binary 'operator&'
     return sqrt(sqr(a.x-b.x)+sqr(a.y-b.y));
                               ^
0_0_20979727_23855.cpp:41:46: error: expected ';' before ')' token
     return sqrt(sqr(a.x-b.x)+sqr(a.y-b.y));
                                              ^
0_0_20979727_23855.cpp: In function 'int work()':
0_0_20979727_23855.cpp:57:5: error: reference to 'hash' is ambiguous
     hash.clear();
     ^
0_0_20979727_23855.cpp:37:2: note: candidates are: Hash_table hash
 }hash;
  ^
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_20979727_23855.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_20979727_23855.cpp:58:5: error: reference to 'hash' is ambiguous
     hash.push(so);
     ^
0_0_20979727_23855.cpp:37:2: note: candidates are: Hash_table hash
 }hash;
  ^
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_20979727_23855.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_20979727_23855.cpp:61:38: error: expected ')' before ';' token
         for (int i = 0; i < m; i ++) {
                                      ^
0_0_20979727_23855.cpp:61:41: error: lvalue required as unary '&' operand
         for (int i = 0; i < m; i ++) {
                                         ^
0_0_20979727_23855.cpp:61:44: error: expected primary-expression before ')' token
         for (int i = 0; i < m; i ++) {
                                            ^
0_0_20979727_23855.cpp: In function 'int main()':
0_0_20979727_23855.cpp:82:38: error: expected ')' before ';' token
         for (int i = 0; i < m; i ++) 
                                      ^
0_0_20979727_23855.cpp:82:41: error: lvalue required as unary '&' operand
         for (int i = 0; i < m; i ++) 
                                         ^
0_0_20979727_23855.cpp:82:44: error: expected primary-expression before ')' token
         for (int i = 0; i < m; i ++) 
                                            ^


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-09-21 06:51:38, Gzip enabled