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_11647526_610.cpp:7: error: `node time[105]' 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_11647526_610.cpp:7: error: declaration of `node time[105]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/time.h:85: error: conflicts with previous declaration `time_t time(time_t*)'
0_0_11647526_610.cpp: In function `int main(int, char**)':
0_0_11647526_610.cpp:22: error: pointer to a function used in arithmetic
0_0_11647526_610.cpp:22: error: request for member `start' in `*((+((unsigned int)i)) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_11647526_610.cpp:22: error: pointer to a function used in arithmetic
0_0_11647526_610.cpp:22: error: request for member `endt' in `*((+((unsigned int)i)) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_11647526_610.cpp:23: error: pointer to a function used in arithmetic
0_0_11647526_610.cpp:26: error: pointer to a function used in arithmetic
0_0_11647526_610.cpp:26: error: request for member `start' in `*((+((unsigned int)i)) + time)', which is of non-class type `time_t ()(time_t*)'
0_0_11647526_610.cpp:26: error: pointer to a function used in arithmetic
0_0_11647526_610.cpp:26: error: request for member `endt' in `*((+((unsigned int)k)) + time)', which is of non-class type `time_t ()(time_t*)'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In function `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]':
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2591: 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_algo.h: In function `void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Size = int, _Compare = bool (*)(node, node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2591:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2504: 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_algo.h:2591:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2521: 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_algo.h:2521: 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:2521: 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:2591:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2521: error: invalid cast to function type `time_t ()(time_t*)'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In function `void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2593:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2218: 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_algo.h:2220: error: no match for 'operator+' in '__first + std::_S_threshold'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2221: error: no match for 'operator+' in '__first + std::_S_threshold'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In function `void std::partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2508:   instantiated from `void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Size = int, _Compare = bool (*)(node, node)]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2591:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2318: error: ISO C++ forbids incrementing a pointer of type `time_t (*)(time_t*)'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2319: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2320: error: invalid cast to function type `time_t ()(time_t*)'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In function `const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = time_t ()(time_t*), _Compare = bool (*)(node, node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2521:   instantiated from `void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Size = int, _Compare = bool (*)(node, node)]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2591:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:124: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:125: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:127: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:131: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:133: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h: In function `void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2225:   instantiated from `void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2593:   instantiated from `void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = time_t (*)(time_t*), _Compare = bool (*)(node, node)]'
0_0_11647526_610.cpp:23:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2141: 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:2141: error: ISO C++ forbids incrementing a pointer of type `time_t (*)(time_t*)'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2144: error: invalid initializer
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2145: error: conversion from `time_t (*)(time_t*)' to non-scalar type `node' requested
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2147: erro


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-11-26 09:48:49, Gzip enabled