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_39080036_26673.cpp:7:9: error: 'int time' redeclared as different kind of entity
    7 | int n,m,time;
      |         ^~~~
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/pthread.h:69,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/atomicity.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_39080036_26673.cpp:1:
gcc-13.1.0/x86_64-w64-mingw32/include/time.h:256:34: note: previous declaration 'time_t time(time_t*)'
  256 | static __inline time_t __CRTDECL time(time_t *_Time) { return _time64(_Time); }
      |                                  ^~~~
0_0_39080036_26673.cpp: In function 'void bfs()':
0_0_39080036_26673.cpp:64:13: error: assignment of function 'time_t time(time_t*)'
   64 |         time=100000;
      |         ~~~~^~~~~~~
0_0_39080036_26673.cpp:75:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   75 |                 if(q.y==n-1&&q.x==m-1&&q.time<time)
      |                                        ~~~~~~^~~~~
0_0_39080036_26673.cpp:77:29: error: assignment of function 'time_t time(time_t*)'
   77 |                         time=q.time;
      |                         ~~~~^~~~~~~


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-06-29 17:38:11, Gzip enabled