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_21961032_3954.cpp:16:3: error: 'typedef struct node floor' redeclared as different kind of symbol
 } floor;
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 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_21961032_3954.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:154:18: note: previous declaration 'double floor(double)'
   double __cdecl floor(double _X);
                  ^
0_0_21961032_3954.cpp: In function 'void bfs(int, int)':
0_0_21961032_3954.cpp:20:16: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence> class std::queue'
     queue<floor>q;
                ^
0_0_21961032_3954.cpp:20:16: error:   expected a type, got 'std::floor'
0_0_21961032_3954.cpp:20:16: error: template argument 2 is invalid
0_0_21961032_3954.cpp:20:18: error: invalid type in declaration before ';' token
     queue<floor>q;
                  ^
0_0_21961032_3954.cpp:21:11: error: expected ';' before 'f'
     floor f;
           ^
0_0_21961032_3954.cpp:21:12: error: statement cannot resolve address of overloaded function
     floor f;
            ^
0_0_21961032_3954.cpp:22:5: error: 'f' was not declared in this scope
     f.fi=a;
     ^
0_0_21961032_3954.cpp:25:7: error: request for member 'push' in 'q', which is of non-class type 'int'
     q.push(f);
       ^
0_0_21961032_3954.cpp:27:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
     while(!q.empty())
              ^
0_0_21961032_3954.cpp:29:15: error: expected ';' before 'now'
         floor now;
               ^
0_0_21961032_3954.cpp:29:18: error: statement cannot resolve address of overloaded function
         floor now;
                  ^
0_0_21961032_3954.cpp:30:9: error: 'now' was not declared in this scope
         now = q.front();
         ^
0_0_21961032_3954.cpp:30:17: error: request for member 'front' in 'q', which is of non-class type 'int'
         now = q.front();
                 ^
0_0_21961032_3954.cpp:31:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
         q.pop();
           ^
0_0_21961032_3954.cpp:36:23: error: expected ';' before 'nex'
                 floor nex;
                       ^
0_0_21961032_3954.cpp:36:26: error: statement cannot resolve address of overloaded function
                 floor nex;
                          ^
0_0_21961032_3954.cpp:37:17: error: 'nex' was not declared in this scope
                 nex.fi=now.fi+i*now.ki;
                 ^
0_0_21961032_3954.cpp:47:19: error: request for member 'push' in 'q', which is of non-class type 'int'
                 q.push(nex);
                   ^


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-10-06 15:31:21, Gzip enabled