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_17203020_3959.cpp:115:2: error: stray '#' in program
 }#include <queue>
  ^
0_0_17203020_3959.cpp:115:3: error: 'include' does not name a type
 }#include <queue>
   ^
0_0_17203020_3959.cpp:129:8: error: redefinition of 'struct g'
 struct g {
        ^
0_0_17203020_3959.cpp:76:8: error: previous definition of 'struct g'
 struct g{
        ^
0_0_17203020_3959.cpp:131:10: error: invalid type in declaration before ';' token
 } s[MAXN];
          ^
0_0_17203020_3959.cpp:131:10: error: conflicting declaration 'int s [1111]'
0_0_17203020_3959.cpp:84:11: note: previous declaration as 'int s'
 int n,i,j,s,t,ss;
           ^
0_0_17203020_3959.cpp: In function 'bool cmp(g, g)':
0_0_17203020_3959.cpp:132:6: error: redefinition of 'bool cmp(g, g)'
 bool cmp(g a, g b) {
      ^
0_0_17203020_3959.cpp:79:6: note: 'bool cmp(g, g)' previously defined here
 bool cmp(g a,g b)
      ^
0_0_17203020_3959.cpp:134:12: error: 'struct g' has no member named 'd'
   return a.d < b.d;
            ^
0_0_17203020_3959.cpp:134:18: error: 'struct g' has no member named 'd'
   return a.d < b.d;
                  ^
0_0_17203020_3959.cpp: In function 'int main()':
0_0_17203020_3959.cpp:138:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_17203020_3959.cpp:87:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_17203020_3959.cpp:145:22: error: invalid types 'int[int]' for array subscript
    scanf("%d%d", &s[i].h, &s[i].d);
                      ^
0_0_17203020_3959.cpp:145:31: error: invalid types 'int[int]' for array subscript
    scanf("%d%d", &s[i].h, &s[i].d);
                               ^
0_0_17203020_3959.cpp:157:12: error: invalid types 'int[int]' for array subscript
     if (s[i].d <= s[j].d) {
            ^
0_0_17203020_3959.cpp:157:22: error: invalid types 'int[int]' for array subscript
     if (s[i].d <= s[j].d) {
                      ^
0_0_17203020_3959.cpp:188:10: error: invalid types 'int[int]' for array subscript
   s[n + 1].d = INF;
          ^
0_0_17203020_3959.cpp:192:18: error: invalid types 'int[int]' for array subscript
     if (mm <= s[j].d)
                  ^
0_0_17203020_3959.cpp:194:12: error: invalid types 'int[int]' for array subscript
     if (s[i].d <= s[j].d) {
            ^
0_0_17203020_3959.cpp:194:22: error: invalid types 'int[int]' for array subscript
     if (s[i].d <= s[j].d) {
                      ^
0_0_17203020_3959.cpp:196:18: error: invalid types 'int[int]' for array subscript
      mm = min(s[j].d, mm);
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_17203020_3959.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = bool (*)(g, g)]'
0_0_17203020_3959.cpp:146:29:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1849:3: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
   __val = _GLIBCXX_MOVE(*__i);
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1849:3: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:8: error: invalid type argument of unary '*' (have 'int')
        *__first = _GLIBCXX_MOVE(__val);
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_17203020_3959.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = int; _Iterator2 = int; _Compare = bool (*)(g, g)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = bool (*)(g, g)]'
0_0_17203020_3959.cpp:146:29:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:31: error: invalid type argument of unary '*' (have 'int')
         { return bool(_M_comp(*__it1, *__it2)); }
                               ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:39: error: invalid type argument of unary '*' (have 'int')
         { return bool(_M_comp(*__it1, *__it2)); }
                                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:62:0,
                 from 0_0_17203020_3959.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int; _Compare = bool (*)(g, g)]'
0_0_17203020_3959.cpp:146:29:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:321:4: error: no type named 'value_type' in 'struct std::iterator_traits<int>'
    _ValueType;
    ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:323:4: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
    _DistanceType;
    ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1676:50:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(g, g)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAcces


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-03-13 12:20:16, Gzip enabled