0_0_19318264_22716.cpp: In function 'int main()':
0_0_19318264_22716.cpp:10:3: error: 'map' was not declared in this scope
map<int,int> m;int ans=1<<30,su=0;
^
0_0_19318264_22716.cpp:10:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
from 0_0_19318264_22716.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:96:11: note: 'std::map'
class map
^
0_0_19318264_22716.cpp:10:7: error: expected primary-expression before 'int'
map<int,int> m;int ans=1<<30,su=0;
^
0_0_19318264_22716.cpp:15:17: error: 'sort' was not declared in this scope
sort(c+1,c+1+n);int q=0,j=-1;
^
0_0_19318264_22716.cpp:15:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_19318264_22716.cpp:5:
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_19318264_22716.cpp:18:4: error: 'm' was not declared in this scope
m[c[i]]=(q-1)-(n-q);
^
0_0_19318264_22716.cpp:22:31: error: 'm' was not declared in this scope
for (int i=1;i<=n;i++) a[i]=m[b[i]],c[i]=c[i-1]-a[i];
^
0_0_19318264_22716.cpp:23:45: error: 'min' was not declared in this scope
for (int i=1;i<=n;i++) ans=min(ans,su+c[i]);
^
0_0_19318264_22716.cpp:23:45: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_19318264_22716.cpp:5:
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)
^
|