0_0_19922257_10633.cpp:12:23: error: 'std::vector<int> nan [100000]' redeclared as different kind of symbol
vector<int> 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_19922257_10633.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_19922257_10633.cpp: In function 'int main()':
0_0_19922257_10633.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_19922257_10633.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_19922257_10633.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_19922257_10633.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);
^
|