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_39586713_21724.cpp: In function 'void solve()':
0_0_39586713_21724.cpp:26:33: error: 'Base' was not declared in this scope
   26 |                 mpa[i+1]=mpa[i]*Base+a[i];
      |                                 ^~~~
0_0_39586713_21724.cpp:28:41: error: 'Base' was not declared in this scope
   28 |                         mpa[i+1]=mpa[i]*Base+a[i-n];
      |                                         ^~~~
0_0_39586713_21724.cpp:32:25: error: 'Base' was not declared in this scope
   32 |         mpb[i+1]=mpb[i]*Base+b[i];
      |                         ^~~~
0_0_39586713_21724.cpp:34:18: error: 'Base' was not declared in this scope
   34 |     string s=ksm(Base,n);
      |                  ^~~~
0_0_39586713_21724.cpp:35:12: error: wrong number of template arguments (1, should be at least 2)
   35 |     map<int> vis;
      |            ^
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
                 from .\stdc++.h:152:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  100 |     class map
      |           ^~~
0_0_39586713_21724.cpp:37:17: error: 'ha' was not declared in this scope; did you mean 'a'?
   37 |         v(stoll(ha[i+n]-ha[i]*s))++;
      |                 ^~
      |                 a
0_0_39586713_21724.cpp:37:9: error: 'v' was not declared in this scope
   37 |         v(stoll(ha[i+n]-ha[i]*s))++;
      |         ^
0_0_39586713_21724.cpp:39:10: error: 'v' was not declared in this scope
   39 |     sort(v.begin(),v.end());
      |          ^
0_0_39586713_21724.cpp:42:21: error: 'hb' was not declared in this scope; did you mean 'b'?
   42 |         int x=stoll(hb[i+n]-hb[i]*s);
      |                     ^~
      |                     b


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-12-01 16:53:21, Gzip enabled