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_38433276_29858.cpp: In function 'std::vector<MInt2> operator*(const std::vector<MInt2>&, const std::vector<MInt2>&)':
0_0_38433276_29858.cpp:325:26: error: 'mod0' is not a valid template argument for type 'const int&' because object 'mod0' has not external linkage
   using Mint0 = MInt<mod0>;
                          ^
0_0_38433276_29858.cpp:326:26: error: 'mod1' is not a valid template argument for type 'const int&' because object 'mod1' has not external linkage
   using Mint1 = MInt<mod1>;
                          ^
0_0_38433276_29858.cpp:327:26: error: 'mod2' is not a valid template argument for type 'const int&' because object 'mod2' has not external linkage
   using Mint2 = MInt<mod2>;
                          ^
0_0_38433276_29858.cpp:328:10: error: 'Mint0' was not declared in this scope
   vector<Mint0> l0(n), r0(m);
          ^
0_0_38433276_29858.cpp:328:15: error: template argument 1 is invalid
   vector<Mint0> l0(n), r0(m);
               ^
0_0_38433276_29858.cpp:328:15: error: template argument 2 is invalid
0_0_38433276_29858.cpp:328:19: error: invalid type in declaration before '(' token
   vector<Mint0> l0(n), r0(m);
                   ^
0_0_38433276_29858.cpp:329:10: error: 'Mint1' was not declared in this scope
   vector<Mint1> l1(n), r1(m);
          ^
0_0_38433276_29858.cpp:329:15: error: template argument 1 is invalid
   vector<Mint1> l1(n), r1(m);
               ^
0_0_38433276_29858.cpp:329:15: error: template argument 2 is invalid
0_0_38433276_29858.cpp:329:19: error: invalid type in declaration before '(' token
   vector<Mint1> l1(n), r1(m);
                   ^
0_0_38433276_29858.cpp:330:10: error: 'Mint2' was not declared in this scope
   vector<Mint2> l2(n), r2(m);
          ^
0_0_38433276_29858.cpp:330:15: error: template argument 1 is invalid
   vector<Mint2> l2(n), r2(m);
               ^
0_0_38433276_29858.cpp:330:15: error: template argument 2 is invalid
0_0_38433276_29858.cpp:330:19: error: invalid type in declaration before '(' token
   vector<Mint2> l2(n), r2(m);
                   ^
0_0_38433276_29858.cpp:331:35: error: invalid types 'int[int]' for array subscript
   for (int i = 0; i < n; ++i) l0[i] = (int) l[i], l1[i] = (int) l[i], l2[i] = (int) l[i];
                                   ^
0_0_38433276_29858.cpp:331:55: error: invalid types 'int[int]' for array subscript
   for (int i = 0; i < n; ++i) l0[i] = (int) l[i], l1[i] = (int) l[i], l2[i] = (int) l[i];
                                                       ^
0_0_38433276_29858.cpp:331:75: error: invalid types 'int[int]' for array subscript
   for (int i = 0; i < n; ++i) l0[i] = (int) l[i], l1[i] = (int) l[i], l2[i] = (int) l[i];
                                                                           ^
0_0_38433276_29858.cpp:332:35: error: invalid types 'int[int]' for array subscript
   for (int j = 0; j < m; ++j) r0[j] = (int) r[j], r1[j] = (int) r[j], r2[j] = (int) r[j];
                                   ^
0_0_38433276_29858.cpp:332:55: error: invalid types 'int[int]' for array subscript
   for (int j = 0; j < m; ++j) r0[j] = (int) r[j], r1[j] = (int) r[j], r2[j] = (int) r[j];
                                                       ^
0_0_38433276_29858.cpp:332:75: error: invalid types 'int[int]' for array subscript
   for (int j = 0; j < m; ++j) r0[j] = (int) r[j], r1[j] = (int) r[j], r2[j] = (int) r[j];
                                                                           ^
0_0_38433276_29858.cpp:335:9: error: 'Mint1' does not name a type
   const Mint1 im0 = 1 / Mint1(mod0);
         ^
0_0_38433276_29858.cpp:336:9: error: 'Mint2' does not name a type
   const Mint2 im1 = 1 / Mint2(mod1), im0m1 = im1 / mod0;
         ^
0_0_38433276_29858.cpp:339:24: error: invalid types 'int[int]' for array subscript
     int y0 = (int) l0[i];
                        ^
0_0_38433276_29858.cpp:340:21: error: 'im0' was not declared in this scope
     int y1 = (int) (im0 * (l1[i] - y0));
                     ^
0_0_38433276_29858.cpp:340:32: error: invalid types 'int[int]' for array subscript
     int y1 = (int) (im0 * (l1[i] - y0));
                                ^
0_0_38433276_29858.cpp:341:21: error: 'im0m1' was not declared in this scope
     int y2 = (int) (im0m1 * (l2[i] - y0) - im1 * y1);
                     ^
0_0_38433276_29858.cpp:341:34: error: invalid types 'int[int]' for array subscript
     int y2 = (int) (im0m1 * (l2[i] - y0) - im1 * y1);
                                  ^
0_0_38433276_29858.cpp:341:44: error: 'im1' was not declared in this scope
     int y2 = (int) (im0m1 * (l2[i] - y0) - im1 * y1);
                                            ^


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.000000(s) query 1, Server time : 2025-02-18 16:36:24, Gzip enabled