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_38777766_22367.cpp:201:38: error: return type 'struct std::array<long long int, 3>' is incomplete
  201 | std::array<i64, 3> exgcd(i64 a, i64 b) {
      |                                      ^
0_0_38777766_22367.cpp: In function 'void exgcd(i64, i64)':
0_0_38777766_22367.cpp:205:14: error: deduced type 'void' for '<structured bindings>' is incomplete
  205 |         auto [g, x, y] = exgcd(b, a % b);
      |              ^~~~~~~~~
0_0_38777766_22367.cpp: In function 'i64 bsgs(i64, i64, i64)':
0_0_38777766_22367.cpp:210:10: error: 'unordered_map' is not a member of 'std'
  210 |     std::unordered_map<i64, i64> mp;
      |          ^~~~~~~~~~~~~
0_0_38777766_22367.cpp:6:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
    5 | #include <utility>
  +++ |+#include <unordered_map>
    6 | 
0_0_38777766_22367.cpp:210:27: error: expected primary-expression before ',' token
  210 |     std::unordered_map<i64, i64> mp;
      |                           ^
0_0_38777766_22367.cpp:210:32: error: expected primary-expression before '>' token
  210 |     std::unordered_map<i64, i64> mp;
      |                                ^
0_0_38777766_22367.cpp:210:34: error: 'mp' was not declared in this scope; did you mean 'p'?
  210 |     std::unordered_map<i64, i64> mp;
      |                                  ^~
      |                                  p
0_0_38777766_22367.cpp:211:18: error: 'sqrt' was not declared in this scope
  211 |     i64 m = ceil(sqrt(p));
      |                  ^~~~
0_0_38777766_22367.cpp:211:13: error: 'ceil' was not declared in this scope
  211 |     i64 m = ceil(sqrt(p));
      |             ^~~~
0_0_38777766_22367.cpp: In function 'void solve()':
0_0_38777766_22367.cpp:235:18: error: 'sqrt' is not a member of 'std'; did you mean 'sort'?
  235 |     int Q = std::sqrt(P + 1) + 1;
      |                  ^~~~
      |                  sort
0_0_38777766_22367.cpp:257:10: error: 'function' is not a member of 'std'
  257 |     std::function<Z2(i64)> get_log = [&](i64 x) {
      |          ^~~~~~~~
0_0_38777766_22367.cpp:6:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
    5 | #include <utility>
  +++ |+#include <functional>
    6 | 
0_0_38777766_22367.cpp:257:21: error: expected primary-expression before '(' token
  257 |     std::function<Z2(i64)> get_log = [&](i64 x) {
      |                     ^
0_0_38777766_22367.cpp:257:25: error: expected primary-expression before ')' token
  257 |     std::function<Z2(i64)> get_log = [&](i64 x) {
      |                         ^
0_0_38777766_22367.cpp:257:28: error: 'get_log' was not declared in this scope; did you mean 'get_s'?
  257 |     std::function<Z2(i64)> get_log = [&](i64 x) {
      |                            ^~~~~~~
      |                            get_s


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-17 00:06:38, Gzip enabled