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_39147079_5177.cpp: In function 'int main()':
0_0_39147079_5177.cpp:9:5: error: 'ios_base' has not been declared
    9 |     ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);
      |     ^~~~~~~~
0_0_39147079_5177.cpp:9:35: error: 'cin' was not declared in this scope
    9 |     ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);
      |                                   ^~~
0_0_39147079_5177.cpp:9:47: error: 'cout' was not declared in this scope
    9 |     ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0);
      |                                               ^~~~
0_0_39147079_5177.cpp:15:9: error: 'string' was not declared in this scope
   15 |         string c;
      |         ^~~~~~
0_0_39147079_5177.cpp:17:19: error: request for member 'length' in 'c', which is of non-class type 'char [200005]'
   17 |         int n = c.length();
      |                   ^~~~~~
0_0_39147079_5177.cpp:18:11: error: incompatible types in assignment of 'char*' to 'char [200005]'
   18 |         c = ' ' + c;
      |         ~~^~~~~~~~~
0_0_39147079_5177.cpp:26:32: error: 'min' was not declared in this scope; did you mean 'mid'?
   26 |             if (i < mr) p[i] = min(p[mid * 2 - i], mr - i + 1);
      |                                ^~~
      |                                mid
0_0_39147079_5177.cpp:2:13: error: 'pair' was not declared in this scope
    2 | #define PII pair<int,int>
      |             ^~~~
0_0_39147079_5177.cpp:31:16: note: in expansion of macro 'PII'
   31 |         vector<PII>wc;
      |                ^~~
0_0_39147079_5177.cpp:31:9: error: 'vector' was not declared in this scope
   31 |         vector<PII>wc;
      |         ^~~~~~
0_0_39147079_5177.cpp:2:18: error: expected primary-expression before 'int'
    2 | #define PII pair<int,int>
      |                  ^~~
0_0_39147079_5177.cpp:31:16: note: in expansion of macro 'PII'
   31 |         vector<PII>wc;
      |                ^~~
0_0_39147079_5177.cpp:34:13: error: 'wc' was not declared in this scope; did you mean 'c'?
   34 |             wc.push_back({ p[i],i });
      |             ^~
      |             c
0_0_39147079_5177.cpp:36:14: error: 'wc' was not declared in this scope; did you mean 'c'?
   36 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |              ^~
      |              c
0_0_39147079_5177.cpp:36:36: error: 'greater' was not declared in this scope
   36 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |                                    ^~~~~~~
0_0_39147079_5177.cpp:2:18: error: expected primary-expression before 'int'
    2 | #define PII pair<int,int>
      |                  ^~~
0_0_39147079_5177.cpp:36:44: note: in expansion of macro 'PII'
   36 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |                                            ^~~
0_0_39147079_5177.cpp:2:22: error: expected primary-expression before 'int'
    2 | #define PII pair<int,int>
      |                      ^~~
0_0_39147079_5177.cpp:36:44: note: in expansion of macro 'PII'
   36 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |                                            ^~~
0_0_39147079_5177.cpp:36:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   36 |         sort(wc.begin(), wc.end(), greater<PII>());//以匹配个数从大到小排序
      |         ^~~~
      |         short
0_0_39147079_5177.cpp:37:9: error: 'set' was not declared in this scope
   37 |         set<int>se;//一次插入set中
      |         ^~~
0_0_39147079_5177.cpp:37:13: error: expected primary-expression before 'int'
   37 |         set<int>se;//一次插入set中
      |             ^~~
0_0_39147079_5177.cpp:42:21: error: 'pos' was not declared in this scope
   42 |             int l = pos - val + 1, r = pos + val - 1;
      |                     ^~~
0_0_39147079_5177.cpp:43:23: error: 'se' was not declared in this scope; did you mean 's'?
   43 |             auto w1 = se.lower_bound(l);
      |                       ^~
      |                       s
0_0_39147079_5177.cpp:48:24: error: 'max' was not declared in this scope; did you mean 'maxx'?
   48 |                 maxx = max(maxx, (pos - *w1) / 2 * 3);
      |                        ^~~
      |                        maxx
0_0_39147079_5177.cpp:50:38: error: 'r' was not declared in this scope
   50 |             auto w2 = se.upper_bound(r);
      |                                      ^
0_0_39147079_5177.cpp:52:16: error: 'prev' was not declared in this scope
   52 |             w2=prev(w2);
      |                ^~~~
0_0_39147079_5177.cpp:57:24: error: 'max' was not declared in this scope; did you mean 'maxx'?
   57 |                 maxx = max(maxx, (*w2 - pos) / 2 * 3);
      |                        ^~~
      |                        maxx


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-05-03 01:19:44, Gzip enabled