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_19922089_10585.cpp:12:29: error: 'std::vector<long long int> nan [100000]' redeclared as different kind of symbol
 vector<long long> nan[100000];
                             ^
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_19922089_10585.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:931:25: note: previous declaration 'double nan(const char*)'
   extern double __cdecl nan(const char *tagp);
                         ^
0_0_19922089_10585.cpp: In function 'int main()':
0_0_19922089_10585.cpp:26:20: error: request for member 'clear' in '*(nan + ((sizetype)j))', which is of non-class type 'double(const char*)'
             nan[j].clear();
                    ^
0_0_19922089_10585.cpp:35:20: error: request for member 'push_back' in '*(nan + ((sizetype)x))', which is of non-class type 'double(const char*)'
             nan[x].push_back(y);
                    ^
0_0_19922089_10585.cpp:44:40: error: request for member 'size' in '*(nan + ((sizetype)j))', which is of non-class type 'double(const char*)'
             for (int z = 0; z < nan[j].size(); ++z)
                                        ^
0_0_19922089_10585.cpp:46:45: error: request for member 'at' in '*(nan + ((sizetype)j))', which is of non-class type 'double(const char*)'
                 ans += onepoint * (g[nan[j].at(z)] - 1);
                                             ^


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-01 19:01:10, Gzip enabled