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_7916887_344.cpp:24: error: `Day time[400000]' redeclared as different kind of symbol
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/time.h:85: error: previous declaration of `time_t time(time_t*)'
0_0_7916887_344.cpp:24: error: declaration of `Day time[400000]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/time.h:85: error: conflicts with previous declaration `time_t time(time_t*)'
0_0_7916887_344.cpp: In function `void init()':
0_0_7916887_344.cpp:39: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:39: error: request for member `y' in `*((+((unsigned int)len)) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:40: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:40: error: request for member `m' in `*((+((unsigned int)len)) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:41: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:41: error: request for member `d' in `*((+((unsigned int)len)) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp: In function `int find(int, int, int)':
0_0_7916887_344.cpp:51: error: pointer to a function used in arithmetic
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator_base_funcs.h: In function `typename std::iterator_traits<_Iterator>::difference_type std::__distance(_RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = time_t (*)(time_t*)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator_base_funcs.h:117:   instantiated from `typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = time_t (*)(time_t*)]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2627:   instantiated from `_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = time_t (*)(time_t*), _Tp = Day]'
0_0_7916887_344.cpp:51:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator_base_funcs.h:97: error: ISO C++ forbids using pointer to a function in subtraction
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator_base_funcs.h: In function `void std::__advance(_RandomAccessIterator&, _Distance, std::random_access_iterator_tag) [with _RandomAccessIterator = time_t (*)(time_t*), _Distance = int]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator_base_funcs.h:175:   instantiated from `void std::advance(_InputIterator&, _Distance) [with _InputIterator = time_t (*)(time_t*), _Distance = int]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2635:   instantiated from `_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = time_t (*)(time_t*), _Tp = Day]'
0_0_7916887_344.cpp:51:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_iterator_base_funcs.h:155: error: pointer to a function used in arithmetic
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In function `_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = time_t (*)(time_t*), _Tp = Day]':
0_0_7916887_344.cpp:51:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2636: error: no match for 'operator<' in '*__middle < __val'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2639: error: ISO C++ forbids incrementing a pointer of type `time_t (*)(time_t*)'
0_0_7916887_344.cpp: In function `int find(int, int, int)':
0_0_7916887_344.cpp:51: error: ISO C++ forbids using pointer to a function in subtraction
0_0_7916887_344.cpp: In function `int main()':
0_0_7916887_344.cpp:64: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:64: error: request for member `y' in `*((+((unsigned int)(u + x))) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:64: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:64: error: request for member `m' in `*((+((unsigned int)(u + x))) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:64: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:64: error: request for member `d' in `*((+((unsigned int)(u + x))) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:64: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:64: error: request for member `y' in `*((+((unsigned int)(u - x))) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:64: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:64: error: request for member `m' in `*((+((unsigned int)(u - x))) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_7916887_344.cpp:64: error: pointer to a function used in arithmetic
0_0_7916887_344.cpp:64: error: request for member `d' in `*((+((unsigned int)(u - x))) + time)', which is of non-class type `time_t ()(time_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-09-21 22:58:39, Gzip enabled