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_24851996_23856.cpp:22:16: error: 'int round' redeclared as different kind of symbol
 int state[8] , round , turn , nj , msk;
                ^
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_24851996_23856.cpp:4:
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_24851996_23856.cpp: In function 'void hit(int, int, int)':
0_0_24851996_23856.cpp:103:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
  push(round + 1 , NJ , X , (1 - P) * val / cnt);
               ^
0_0_24851996_23856.cpp:106:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
  push(round + 1 , NJ , X , P * val / cnt);
               ^
0_0_24851996_23856.cpp: In function 'void work()':
0_0_24851996_23856.cpp:261:9: error: overloaded function with no contextual type information
   round = que.front().round;
         ^
0_0_24851996_23856.cpp:262:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator%'
   turn = round % n;
                  ^
0_0_24851996_23856.cpp:265:17: error: invalid types 'double [80][5][729][<unresolved overloaded function type>]' for array subscript
   val = dp[round][nj][msk];
                 ^
0_0_24851996_23856.cpp:267:14: error: invalid types 'bool [80][5][729][<unresolved overloaded function type>]' for array subscript
   Inque[round][nj][msk] = false;
              ^
0_0_24851996_23856.cpp:270:17: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
    push(round + 1 , nj , state , val);
                 ^


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-24 22:01:23, Gzip enabled