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_39874787_31465.cpp:8:5: error: 'int time' redeclared as different kind of entity
    8 | int 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_39874787_31465.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_39874787_31465.cpp: In function 'int bfs()':
0_0_39874787_31465.cpp:45:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   45 |                         if (child.t > time) {
      |                             ~~~~~~~~^~~~~~
0_0_39874787_31465.cpp:47:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   47 |                         } else if (child.z == a && child.y == b && child.x == c && child.t <= time) {
      |                                                                                    ~~~~~~~~^~~~~~~
0_0_39874787_31465.cpp:61:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   61 |                         if (child.t > time) {
      |                             ~~~~~~~~^~~~~~
0_0_39874787_31465.cpp:63:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   63 |                         } else if (child.z == a && child.y == b && child.x == c && child.t <= time) {
      |                                                                                    ~~~~~~~~^~~~~~~
0_0_39874787_31465.cpp:78:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   78 |                         if (child.t > time) {
      |                             ~~~~~~~~^~~~~~
0_0_39874787_31465.cpp:80:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   80 |                         } else if (child.z == a && child.y == b && child.x == c && child.t <= time) {
      |                                                                                    ~~~~~~~~^~~~~~~
0_0_39874787_31465.cpp:95:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   95 |                         if (child.t > time) {
      |                             ~~~~~~~~^~~~~~
0_0_39874787_31465.cpp:97:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   97 |                         } else if (child.z == a && child.y == b && child.x == c && child.t <= time) {
      |                                                                                    ~~~~~~~~^~~~~~~
0_0_39874787_31465.cpp:112:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  112 |                         if (child.t > time) {
      |                             ~~~~~~~~^~~~~~
0_0_39874787_31465.cpp:114:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  114 |                         } else if (child.z == a && child.y == b && child.x == c && child.t <= time) {
      |                                                                                    ~~~~~~~~^~~~~~~
0_0_39874787_31465.cpp:127:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  127 |                         if (child.t > time) {
      |                             ~~~~~~~~^~~~~~
0_0_39874787_31465.cpp:129:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  129 |                         } else if (child.z == a && child.y == b && child.x == c && child.t <= time) {
      |                                                                                    ~~~~~~~~^~~~~~~
0_0_39874787_31465.cpp: In function 'int main()':
0_0_39874787_31465.cpp:149:36: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'time_t(time_t*)' {aka 'long long int(long long int*)'})
  149 |                 cin >> a >> b >> c >> time;
      |                 ~~~~~~~~~~~~~~~~~~ ^~ ~~~~
      |                               |       |
      |                               |       time_t(time_t*) {aka long long int(long long int*)}
      |                               std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:42:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:325:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  325 |       operator>>(void*& __p)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:325:7: note:   conversion of argument 1 would be ill-formed:
0_0_39874787_31465.cpp:149:39: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'void*' [-fpermissive]
  149 |                 cin >> a >> b >> c >> time;
      |                                       ^~~~
      |                                       |
      |                                       time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_39874787_31465.cpp:149:39: error: cannot bind rvalue '(void*)time' to 'void*&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:201:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  201 |       operator>>(unsigned long long& __n)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:201:7: note:   conversion of argument 1 would be ill-formed:
0_0_39874787_31465.cpp:149:39: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long long unsigned int' [-fpermissive]
  149 |                 cin >> a >> b >> c >> time;
      |                                       ^~~~
      |                                       |
      |                                       time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_39874787_31465.cpp:149:39: error: cannot bind rvalue '(long long unsigned int)time' to 'long long unsigned int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:197:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  197 |       operator>>(long long& __n)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:197:7: note:   conversion of argument 1 would be ill-formed:
0_0_39874787_31465.cpp:149:39: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long long int' [-fpermissive]
  149 |                 cin >> a >> b >> c >> time;
      |                                       ^~~~
      |                                       |
      |                                       time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_39874787_31465.cpp:149:39: error: cannot bind rvalue '(long long int)time' to 'long long int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  192 |       operator>>(unsigned long& __n)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:192:7: note:   conversion of argument 1 would be ill-formed:
0_0_39874787_31465.cpp:149:39: error: invalid conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long unsigned int' [-fpermissive]
  149 |                 cin >> a >> b >> c >> time;
      |                                       ^~~~
      |                                       |
      |                                       time_t (*)(time_t*) {aka long long int (*)(long long int*)}
0_0_39874787_31465.cpp:149:39: error: cannot bind rvalue '(long unsigned int)time' to 'long unsigned int&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  188 |       operator>>(long& __n)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_6


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 03:27:33, Gzip enabled