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_8861956_29031.cpp:10: error: `Node clock[10000]' redeclared as different kind of symbol
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/time.h:84: error: previous declaration of `clock_t clock()'
0_0_8861956_29031.cpp:10: error: declaration of `Node clock[10000]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/time.h:84: error: conflicts with previous declaration `clock_t clock()'
0_0_8861956_29031.cpp: In function `int main()':
0_0_8861956_29031.cpp:28: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:28: error: request for member `h' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:28: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:28: error: request for member `m' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:29: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:29: error: request for member `h' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:30: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:30: error: request for member `r' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:30: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:30: error: request for member `h' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:30: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:30: error: request for member `m' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:30: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:30: error: request for member `m' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:32: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:32: error: request for member `r' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:32: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:32: error: request for member `h' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:32: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:32: error: request for member `m' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:32: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:32: error: request for member `m' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:33: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:33: error: request for member `r' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:34: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:34: error: request for member `r' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:34: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:34: error: request for member `r' in `*((+((unsigned int)i)) + clock)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:36: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:39: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:39: error: request for member `h' in `*(clock + 2u)', which is of non-class type `clock_t ()()'
0_0_8861956_29031.cpp:39: error: pointer to a function used in arithmetic
0_0_8861956_29031.cpp:39: error: request for member `m' in `*(clock + 2u)', which is of non-class type `clock_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 = clock_t (*)(), _Compare = int (*)(Node, Node)]':
0_0_8861956_29031.cpp:36:   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 = clock_t (*)(), _Size = int, _Compare = int (*)(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 = clock_t (*)(), _Compare = int (*)(Node, Node)]'
0_0_8861956_29031.cpp:36:   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_heap.h: In function `void std::make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = clock_t (*)(), _Compare = int (*)(Node, Node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2317:   instantiated from `void std::partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = clock_t (*)(), _Compare = int (*)(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 = clock_t (*)(), _Size = int, _Compare = int (*)(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 = clock_t (*)(), _Compare = int (*)(Node, Node)]'
0_0_8861956_29031.cpp:36:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_heap.h:397: 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_heap.h:400: 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_heap.h:404: error: pointer to a function used in arithmetic
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_heap.h:404: error: invalid cast to function type `clock_t ()()'
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 = clock_t (*)(), _Compare = int (*)(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 = clock_t (*)(), _Size = int, _Compare = int (*)(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 = clock_t (*)(), _Compare = int (*)(Node, Node)]'
0_0_8861956_29031.cpp:36:   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 `clock_t (*)()'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2319: error: conversion from `clock_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 `clock_t ()()'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_heap.h: In function `void std::sort_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = clock_t (*)(), _Compare = int (*)(Node, Node)]':
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:2321:   instantiated from `void std::partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = clock_t (*)(), _Compare = int (*)(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 = clock_t (*)(), _Size = int, _Compare = int (*)(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 = clock_t (*)(), _Compare = int (*)(Node, Node)]'
0_0_8861956_29031.cpp:36:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_heap.h:457: 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_h


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-07-01 11:37:27, Gzip enabled