0_0_38603982_29126.cpp: In function 'int main()':
0_0_38603982_29126.cpp:22:9: error: 'sort' was not declared in this scope
sort(tian, tian + n, cmp);
^~~~
0_0_38603982_29126.cpp:22:9: note: suggested alternative:
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/algorithm:62,
from 0_0_38603982_29126.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algo.h:4854:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~
0_0_38603982_29126.cpp:23:20: error: 'kikng' was not declared in this scope
sort(king, kikng + n, cmp);
^~~~~
0_0_38603982_29126.cpp:23:20: note: suggested alternative: 'king'
sort(king, kikng + n, cmp);
^~~~~
king
0_0_38603982_29126.cpp:28:37: error: 'first' was not declared in this scope
if (tian[tfirst] > king[first])
^~~~~
0_0_38603982_29126.cpp:28:37: note: suggested alternative: 'kfirst'
if (tian[tfirst] > king[first])
^~~~~
kfirst
|