0_0_18115598_1338.cpp: In function 'void firstcal()':
0_0_18115598_1338.cpp:52:3: error: reference to 'next' is ambiguous
next[i]=sum;
^
0_0_18115598_1338.cpp:14:8: note: candidates are: double next [3005]
double next[maxn+5];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_18115598_1338.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_18115598_1338.cpp: In function 'void cal()':
0_0_18115598_1338.cpp:58:33: error: reference to 'next' is ambiguous
for(int i=1;i<=n;i++) start[i]=next[i];
^
0_0_18115598_1338.cpp:14:8: note: candidates are: double next [3005]
double next[maxn+5];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_18115598_1338.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_18115598_1338.cpp:67:3: error: reference to 'next' is ambiguous
next[i]=sum;
^
0_0_18115598_1338.cpp:14:8: note: candidates are: double next [3005]
double next[maxn+5];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_18115598_1338.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_18115598_1338.cpp: In function 'double dist()':
0_0_18115598_1338.cpp:76:18: error: reference to 'next' is ambiguous
ans+=(start[i]-next[i])*(start[i]-next[i]);
^
0_0_18115598_1338.cpp:14:8: note: candidates are: double next [3005]
double next[maxn+5];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_18115598_1338.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_18115598_1338.cpp:76:37: error: reference to 'next' is ambiguous
ans+=(start[i]-next[i])*(start[i]-next[i]);
^
0_0_18115598_1338.cpp:14:8: note: candidates are: double next [3005]
double next[maxn+5];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_18115598_1338.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_18115598_1338.cpp: In function 'int main()':
0_0_18115598_1338.cpp:125:19: error: reference to 'next' is ambiguous
printf("%.2lf",next[i]);
^
0_0_18115598_1338.cpp:14:8: note: candidates are: double next [3005]
double next[maxn+5];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:60,
from 0_0_18115598_1338.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
|