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_28012258_24620.cpp:6:22: error: 'int time [9000]' redeclared as different kind of symbol
 int n, m, time[ 9000 ], times, note[ 9000 ];
                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ctime:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:49,
                 from 0_0_28012258_24620.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/time.h:233:29: note: previous declaration 'time_t time(time_t*)'
 __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); }
                             ^
0_0_28012258_24620.cpp: In function 'void init()':
0_0_28012258_24620.cpp:14:15: error: assignment of function 'time_t time(time_t*)'
     time[ 0 ] = -1; time[ 1 ] = 0;
               ^
0_0_28012258_24620.cpp:14:15: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp:14:31: error: assignment of read-only location '*(time + 1u)'
     time[ 0 ] = -1; time[ 1 ] = 0;
                               ^
0_0_28012258_24620.cpp:14:31: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp:21:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t - 2 > time[ times - 1 ] )
                                      ^
0_0_28012258_24620.cpp:22:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
             time[ times++ ] = t - 2;
                             ^
0_0_28012258_24620.cpp:22:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp:23:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t - 1 > time[ times - 1 ] )
                                      ^
0_0_28012258_24620.cpp:24:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
             time[ times++ ] = t - 1;
                             ^
0_0_28012258_24620.cpp:24:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp:25:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t > time[ times - 1 ] )
                                  ^
0_0_28012258_24620.cpp:27:27: error: assignment of read-only location '*(time + ((sizetype)times))'
             time[ times ] = t;
                           ^
0_0_28012258_24620.cpp:27:27: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp:30:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t == time[ times - 3 ] )
                                   ^
0_0_28012258_24620.cpp:32:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t == time[ times - 2 ] )
                                   ^
0_0_28012258_24620.cpp:34:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t == time[ times - 1 ] )
                                   ^
0_0_28012258_24620.cpp:36:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t == time[ times - 1 ] && t + 1 <= n )
                                   ^
0_0_28012258_24620.cpp:37:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
             time[ times++ ] = t + 1;
                             ^
0_0_28012258_24620.cpp:37:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp:38:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if ( t + 1 == time[ times - 1 ] && t + 2 <= n )
                                       ^
0_0_28012258_24620.cpp:39:29: error: assignment of read-only location '*(time + ((sizetype)(times ++)))'
             time[ times++ ] = t + 2;
                             ^
0_0_28012258_24620.cpp:39:29: error: cannot convert 'int' to 'time_t(time_t*) {aka long long int(long long int*)}' in assignment
0_0_28012258_24620.cpp: In function 'void dfs3(int)':
0_0_28012258_24620.cpp:121:37: error: expected primary-expression before '?' token
     h2[ 0 ] = h1[ 0 ] - 1; h2[ 0 ] >?= 0;
                                     ^
0_0_28012258_24620.cpp:121:38: error: expected primary-expression before '=' token
     h2[ 0 ] = h1[ 0 ] - 1; h2[ 0 ] >?= 0;
                                      ^
0_0_28012258_24620.cpp:121:41: error: expected ':' before ';' token
     h2[ 0 ] = h1[ 0 ] - 1; h2[ 0 ] >?= 0;
                                         ^
0_0_28012258_24620.cpp:121:41: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp:132:41: error: expected primary-expression before '?' token
         h2[ 1 ] = h1[ 1 ] - 1; h2[ 1 ] >?= 0;
                                         ^
0_0_28012258_24620.cpp:132:42: error: expected primary-expression before '=' token
         h2[ 1 ] = h1[ 1 ] - 1; h2[ 1 ] >?= 0;
                                          ^
0_0_28012258_24620.cpp:132:45: error: expected ':' before ';' token
         h2[ 1 ] = h1[ 1 ] - 1; h2[ 1 ] >?= 0;
                                             ^
0_0_28012258_24620.cpp:132:45: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp:143:45: error: expected primary-expression before '?' token
             h2[ 2 ] = h1[ 2 ] - 1; h2[ 2 ] >?= 0;
                                             ^
0_0_28012258_24620.cpp:143:46: error: expected primary-expression before '=' token
             h2[ 2 ] = h1[ 2 ] - 1; h2[ 2 ] >?= 0;
                                              ^
0_0_28012258_24620.cpp:143:49: error: expected ':' before ';' token
             h2[ 2 ] = h1[ 2 ] - 1; h2[ 2 ] >?= 0;
                                                 ^
0_0_28012258_24620.cpp:143:49: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp:154:49: error: expected primary-expression before '?' token
                 h2[ 3 ] = h1[ 3 ] - 1; h2[ 3 ] >?= 0;
                                                 ^
0_0_28012258_24620.cpp:154:50: error: expected primary-expression before '=' token
                 h2[ 3 ] = h1[ 3 ] - 1; h2[ 3 ] >?= 0;
                                                  ^
0_0_28012258_24620.cpp:154:53: error: expected ':' before ';' token
                 h2[ 3 ] = h1[ 3 ] - 1; h2[ 3 ] >?= 0;
                                                     ^
0_0_28012258_24620.cpp:154:53: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp: In function 'void dfs4(int, int)':
0_0_28012258_24620.cpp:212:95: error: expected primary-expression before '?' token
         f[ p2 ][ a2[ 0 ] ][ a2[ 1 ] ][ a2[ 2 ] ][ h2[ 0 ] ][ h2[ 1 ] ][ h2[ 2 ] ][ h2[ 3 ] ] >?= 
                                                                                               ^
0_0_28012258_24620.cpp:212:96: error: expected primary-expression before '=' token
         f[ p2 ][ a2[ 0 ] ][ a2[ 1 ] ][ a2[ 2 ] ][ h2[ 0 ] ][ h2[ 1 ] ][ h2[ 2 ] ][ h2[ 3 ] ] >?= 
                                                                                                ^
0_0_28012258_24620.cpp:213:103: error: expected ':' before ';' token
             f[ p1 ][ a1[ 0 ] ][ a1[ 1 ] ][ a1[ 2 ] ][ h1[ 0 ] ][ h1[ 1 ] ][ h1[ 2 ] ][ h1[ 3 ] ] + sum;
                                                                                                       ^
0_0_28012258_24620.cpp:213:103: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp:214:21: error: expected primary-expression before '?' token
         max_score1 >?= f[ p2 ][ a2[ 0 ] ][ a2[ 1 ] ][ a2[ 2 ] ][ h2[ 0 ] ][ h2[ 1 ] ][ h2[ 2 ] ][ h2[ 3 ] ];
                     ^
0_0_28012258_24620.cpp:214:22: error: expected primary-expression before '=' token
         max_score1 >?= f[ p2 ][ a2[ 0 ] ][ a2[ 1 ] ][ a2[ 2 ] ][ h2[ 0 ] ][ h2[ 1 ] ][ h2[ 2 ] ][ h2[ 3 ] ];
                      ^
0_0_28012258_24620.cpp:214:108: error: expected ':' before ';' token
         max_score1 >?= f[ p2 ][ a2[ 0 ] ][ a2[ 1 ] ][ a2[ 2 ] ][ h2[ 0 ] ][ h2[ 1 ] ][ h2[ 2 ] ][ h2[ 3 ] ];
                                                                                                            ^
0_0_28012258_24620.cpp:214:108: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp: In function 'void dfs3_2(int)':
0_0_28012258_24620.cpp:274:37: error: expected primary-expression before '?' token
     h2[ 0 ] = h1[ 0 ] - 1; h2[ 0 ] >?= 0;
                                     ^
0_0_28012258_24620.cpp:274:38: error: expected primary-expression before '=' token
     h2[ 0 ] = h1[ 0 ] - 1; h2[ 0 ] >?= 0;
                                      ^
0_0_28012258_24620.cpp:274:41: error: expected ':' before ';' token
     h2[ 0 ] = h1[ 0 ] - 1; h2[ 0 ] >?= 0;
                                         ^
0_0_28012258_24620.cpp:274:41: error: expected primary-expression before ';' token
0_0_28012258_24620.cpp:285:41: error: expected primary-expression before '?' token
         h2[ 1 ] = h1[ 1 ] - 1; h2[ 1 ] >?= 0;
                                         ^
0_0_28012258_24620.cpp:285:42: error: expected primary-expression before '=' token
         h2[ 1 ] = h1[ 1 ] - 1; h2[ 1 ] >?= 0;
                                          ^
0_0_28012258_24620.cpp:285:45: error: expected ':' before ';' token
         h2[ 1 ] = h1[ 1 ] - 1; h2[ 1 ] >?= 0;
                            


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-03 19:11:50, Gzip enabled