F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-15 06:09:05, Gzip enabled