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_32415825_29368.cpp:14:21: error: 'int time' redeclared as different kind of symbol
 int height=10,width,time;
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_32415825_29368.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:233:29: note: previous declaration 'time_t time(time_t*)'
 __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); }
                             ^
0_0_32415825_29368.cpp: In function 'int main()':
0_0_32415825_29368.cpp:52:19: error: cannot bind 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' lvalue to 'std::basic_istream<char>&&'
  while(cin>>height>>width>>time&&(height&&width&&time))
                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_32415825_29368.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:872:5: note: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = long long int(long long int*)]'
     operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
     ^
0_0_32415825_29368.cpp:67:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if(time<dis||(time-dis)&1)
           ^
0_0_32415825_29368.cpp:67:27: error: invalid operands of types 'time_t (*)(time_t*) {aka long long int (*)(long long int*)}' and 'int' to binary 'operator&'
   if(time<dis||(time-dis)&1)
                           ^
0_0_32415825_29368.cpp:73:20: error: invalid conversion from 'time_t (*)(time_t*) {aka long long int (*)(long long int*)}' to 'int' [-fpermissive]
   if(dfs(start,time))
                    ^
0_0_32415825_29368.cpp:25:6: note: initializing argument 2 of 'bool dfs(const Node&, int)'
 bool dfs(const Node& x,int t)
      ^


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-02 00:56:27, Gzip enabled