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_39147119_29532.cpp: In function 'int main()':
0_0_39147119_29532.cpp:10:5: error: 'ios_base' has not been declared
   10 |     ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);
      |     ^~~~~~~~
0_0_39147119_29532.cpp:10:35: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |     ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);
      |                                   ^~~
      |                                   std::cin
In file included from .\stdc++.h:146:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
0_0_39147119_29532.cpp:10:47: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);
      |                                               ^~~~
      |                                               std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
0_0_39147119_29532.cpp:16:9: error: 'string' was not declared in this scope
   16 |         string c;
      |         ^~~~~~
0_0_39147119_29532.cpp:16:9: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bitset:52,
                 from .\stdc++.h:52:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:66:11: note:   'std::pmr::string'
   66 |     using string    = basic_string<char>;
      |           ^~~~~~
0_0_39147119_29532.cpp:18:19: error: request for member 'length' in 'c', which is of non-class type 'char [200005]'
   18 |         int n = c.length();
      |                   ^~~~~~
0_0_39147119_29532.cpp:19:11: error: incompatible types in assignment of 'char*' to 'char [200005]'
   19 |         c = ' ' + c;
      |         ~~^~~~~~~~~
0_0_39147119_29532.cpp:27:32: error: 'min' was not declared in this scope
   27 |             if (i < mr) p[i] = min(p[mid * 2 - i], mr - i + 1);
      |                                ^~~
0_0_39147119_29532.cpp:27:32: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:5785:5: note:   'std::min'
 5785 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:733:29: note:   'std::ranges::min'
  733 |   inline constexpr __min_fn min{};
      |                             ^~~
0_0_39147119_29532.cpp:3:13: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
    3 | #define PII pair<int,int>
      |             ^~~~
0_0_39147119_29532.cpp:32:16: note: in expansion of macro 'PII'
   32 |         vector<PII>wc;
      |                ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:187:12: note: 'std::pair' declared here
  187 |     struct pair
      |            ^~~~
0_0_39147119_29532.cpp:32:9: error: 'vector' was not declared in this scope
   32 |         vector<PII>wc;
      |         ^~~~~~
0_0_39147119_29532.cpp:32:9: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:66,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/functional:64,
                 from .\stdc++.h:53:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:423:11: note:   'std::vector'
  423 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:86:13: note:   'std::pmr::vector'
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
0_0_39147119_29532.cpp:3:18: error: expected primary-expression before 'int'
    3 | #define PII pair<int,int>
      |                  ^~~
0_0_39147119_29532.cpp:32:16: note: in expansion of macro 'PII'
   32 |         vector<PII>wc;
      |                ^~~
0_0_39147119_29532.cpp:35:13: error: 'wc' was not declared in this scope; did you mean 'c'?
   35 |             wc.push_back({ p[i],i });
      |             ^~
      |             c
0_0_39147119_29532.cpp:37:14: error: 'wc' was not declared in this scope; did you mean 'c'?
   37 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |              ^~
      |              c
0_0_39147119_29532.cpp:37:36: error: 'greater' was not declared in this scope
   37 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |                                    ^~~~~~~
0_0_39147119_29532.cpp:37:36: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:49:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_function.h:356:12: note:   'std::greater'
  356 |     struct greater;
      |            ^~~~~~~
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:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:143:10: note:   'std::ranges::greater'
  143 |   struct greater
      |          ^~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:51:57: note:   'std::__cmp_cat::_Ord::greater'
   51 |     enum class _Ord : type { equivalent = 0, less = -1, greater = 1 };
      |                                                         ^~~~~~~
0_0_39147119_29532.cpp:3:18: error: expected primary-expression before 'int'
    3 | #define PII pair<int,int>
      |                  ^~~
0_0_39147119_29532.cpp:37:44: note: in expansion of macro 'PII'
   37 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |                                            ^~~
0_0_39147119_29532.cpp:3:22: error: expected primary-expression before 'int'
    3 | #define PII pair<int,int>
      |                      ^~~
0_0_39147119_29532.cpp:37:44: note: in expansion of macro 'PII'
   37 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |                                            ^~~
0_0_39147119_29532.cpp:37:9: error: 'sort' was not declared in this scope
   37 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |         ^~~~
0_0_39147119_29532.cpp:37:9: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:73:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:296:1: note:   'std::sort'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:1801:30: note:   'std::ranges::sort'
 1801 |   inline constexpr __sort_fn sort{};
      |                              ^~~~
0_0_39147119_29532.cpp:38:9: error: 'set' was not declared in this scope
   38 |         set<int>se;//一次插入set中
      |         ^~~
0_0_39147119_29532.cpp:38:9: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:63,
                 from .\stdc++.h:158:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note:   'std::set'
   94 |     class set
      |           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:80:13: note:   'std::pmr::set'
   80 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
0_0_39147119_29532.cpp:38:13: error: expected primary-expression before 'int'
   38 |         set<int>se;//一次插入set中
      |             ^~~
0_0_39147119_29532.cpp:43:21: error: 'pos' was not declared in this scope; did you mean 'pow'?
   43 |             int l = pos - val + 1, r = pos + val - 1;
      |                     ^~~
      |                     pow
0_0_39147119_29532.cpp:44:23: error: 'se' was not declared in this scope; did you mean 's'?
   44 |             auto w1 = se.lower_bound(l);
      |                       ^~
      |                       s
0_0_3914711


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 12:16:09, Gzip enabled