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_38965178_28456.cpp: In function 'bool check(int, int, int, int, int, int)':
0_0_38965178_28456.cpp:21:9: error: '_ASSERT' was not declared in this scope
   21 |         _ASSERT(t != 0);
      |         ^~~~~~~
0_0_38965178_28456.cpp: In function 'int main()':
0_0_38965178_28456.cpp:75:50: error: 'less' was not declared in this scope
   75 |                         sort(Ys + 1, Ys + m + 1, less<double>());
      |                                                  ^~~~~~~~~~~~
0_0_38965178_28456.cpp:75:50: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/iterator_concepts.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_types.h:71,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
                 from 0_0_38965178_28456.cpp:4:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:116:10: note:   'std::ranges::less'
  116 |   struct less
      |          ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:51:46: note:   'std::__cmp_cat::_Ord::less'
   51 |     enum class _Ord : type { equivalent = 0, less = -1, greater = 1 };
      |                                              ^~~~
0_0_38965178_28456.cpp:76:59: error: expected primary-expression before 'double'
   76 |                         sort(Ys + m + 1, Ys + n + 1, less<double>());
      |                                                           ^~~~~~
0_0_38965178_28456.cpp:119:25: error: '_ASSERT' was not declared in this scope
  119 |                         _ASSERT(a[0] == a[1]);
      |                         ^~~~~~~


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-26 00:12:27, Gzip enabled