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_4461776_22595.cpp:31: error: `int time[500005]' 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_4461776_22595.cpp:31: error: declaration of `int time[500005]'
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/time.h:85: error: conflicts with previous declaration `time_t time(time_t*)'
0_0_4461776_22595.cpp: In function `int mymin(int, int, int)':
0_0_4461776_22595.cpp:104: error: pointer to a function used in arithmetic
0_0_4461776_22595.cpp:104: error: pointer to a function used in arithmetic
0_0_4461776_22595.cpp: In function `int main()':
0_0_4461776_22595.cpp:138: error: pointer to a function used in arithmetic
0_0_4461776_22595.cpp:149: error: pointer to a function used in arithmetic
0_0_4461776_22595.cpp:149: error: assignment of read-only location
0_0_4461776_22595.cpp:149: error: cannot convert `int' to `time_t ()(time_t*)' in assignment
0_0_4461776_22595.cpp:157: error: pointer to a function used in arithmetic
0_0_4461776_22595.cpp:172: error: pointer to a function used in arithmetic
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h: In function `void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = time_t (*)(time_t*), _Tp = int]':
0_0_4461776_22595.cpp:138:   instantiated from here
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:523: 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_algobase.h:524: error: assignment of read-only location
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_algobase.h:524: error: cannot convert `const int' to `time_t ()(time_t*)' in assignment


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 14:33:21, Gzip enabled