0_0_14782902_844.cpp:7:7: error: expected nested-name-specifier before 'namesqace'
using namesqace std;
^
0_0_14782902_844.cpp:10:1: error: 'vector' does not name a type
vector<int64> sqi;
^
0_0_14782902_844.cpp: In function 'int64 solve(int64, int64, int64, int64)':
0_0_14782902_844.cpp:80:41: error: 'min' was not declared in this scope
ans = min(ans, (a*(sq*sq + i) + b) % P);
^
0_0_14782902_844.cpp:80:41: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14782902_844.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_14782902_844.cpp:83:25: error: 'sort' was not declared in this scope
sort(v + 1, v + tot + 1);
^
0_0_14782902_844.cpp:83:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14782902_844.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
0_0_14782902_844.cpp:87:36: error: 'min' was not declared in this scope
ans = min(ans, (v[1] + P - x) % P);
^
0_0_14782902_844.cpp:87:36: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14782902_844.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_14782902_844.cpp: In function 'int main()':
0_0_14782902_844.cpp:110:33: error: 'sort' was not declared in this scope
sort(rk + 1, rk + cnt + 1, cmp);
^
0_0_14782902_844.cpp:110:33: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_14782902_844.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
|