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_15718389_23761.cpp:18:34: error: 'int round' redeclared as different kind of symbol
 int stamp, vis[N][N], col[N][N], round, rvis[N][N], cstamp, cvis[N * N], pre[N * N];
                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_15718389_23761.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:874:25: note: previous declaration 'double round(double)'
   extern double __cdecl round (double);
                         ^
0_0_15718389_23761.cpp: In function 'int calc(std::vector<std::pair<int, int> >&)':
0_0_15718389_23761.cpp:40:4: error: no pre-increment operator for type
  ++round;
    ^
0_0_15718389_23761.cpp:45:14: error: cannot resolve overloaded function 'round' based on conversion to type 'int'
   rvis[x][y] = round;
              ^
0_0_15718389_23761.cpp:54:67: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator!='
     if (tx < 0 || tx >= n || ty < 0 || ty >= m || rvis[tx][ty] != round) {
                                                                   ^


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-10-01 07:32:29, Gzip enabled