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_39106025_14109.cpp:3:11: error: 'const int time' redeclared as different kind of entity
    3 | const int time = 1005, cdSUM = 105;
      |           ^~~~
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/pthread.h:69,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/atomicity.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/streambuf:43,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/streambuf_iterator.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iterator:66,
                 from .\stdc++.h:54:
gcc-13.1.0/x86_64-w64-mingw32/include/time.h:256:34: note: previous declaration 'time_t time(time_t*)'
  256 | static __inline time_t __CRTDECL time(time_t *_Time) { return _time64(_Time); }
      |                                  ^~~~
0_0_39106025_14109.cpp: In function 'int main()':
0_0_39106025_14109.cpp:5:44: error: conversion from 'time_t (*)(time_t*)' {aka 'long long int (*)(long long int*)'} to 'long long unsigned int' in a converted constant expression
    5 |     int ts, i, j, t, v, n, m, tLimt, value[time][cdSUM];
      |                                            ^~~~
0_0_39106025_14109.cpp:5:44: error: could not convert 'time' from 'time_t(time_t*)' {aka 'long long int(long long int*)'} to 'long long unsigned int'
    5 |     int ts, i, j, t, v, n, m, tLimt, value[time][cdSUM];
      |                                            ^~~~
      |                                            |
      |                                            time_t(time_t*) {aka long long int(long long int*)}
0_0_39106025_14109.cpp:5:44: error: size of array 'value' has non-integral type 'time_t(time_t*)' {aka 'long long int(long long int*)'}


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-06-18 15:43:22, Gzip enabled