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_39596048_17132.cpp:1:2: error: stray '#' in program
    1 | a#include <bits/stdc++.h>
      |  ^
0_0_39596048_17132.cpp:1:1: error: 'a' does not name a type
    1 | a#include <bits/stdc++.h>
      | ^
0_0_39596048_17132.cpp:17:34: error: 'is_integral' was not declared in this scope
   17 |   template <class T, enable_if_t<is_integral<T>::value>* = nullptr>
      |                                  ^~~~~~~~~~~
0_0_39596048_17132.cpp:17:34: error: 'is_integral' was not declared in this scope
0_0_39596048_17132.cpp:17:34: error: 'is_integral' was not declared in this scope
0_0_39596048_17132.cpp:17:34: error: 'is_integral' was not declared in this scope
0_0_39596048_17132.cpp:17:34: error: 'is_integral' was not declared in this scope
0_0_39596048_17132.cpp:17:34: error: 'is_integral' was not declared in this scope
0_0_39596048_17132.cpp:17:22: error: 'enable_if_t' has not been declared
   17 |   template <class T, enable_if_t<is_integral<T>::value>* = nullptr>
      |                      ^~~~~~~~~~~
0_0_39596048_17132.cpp:17:33: error: expected '>' before '<' token
   17 |   template <class T, enable_if_t<is_integral<T>::value>* = nullptr>
      |                                 ^
0_0_39596048_17132.cpp:23:16: error: 'string' does not name a type
   23 |   modint(const string& str) {
      |                ^~~~~~
0_0_39596048_17132.cpp:37:10: error: 'istream' does not name a type
   37 |   friend istream& operator>>(istream& is, modint& self) {
      |          ^~~~~~~
0_0_39596048_17132.cpp:43:10: error: 'ostream' does not name a type
   43 |   friend ostream& operator<<(ostream& os, const modint& self) {
      |          ^~~~~~~
0_0_39596048_17132.cpp: In constructor 'modint<umod>::modint(const int&)':
0_0_39596048_17132.cpp:25:5: error: 'size_t' was not declared in this scope
   25 |     size_t i = 0;
      |     ^~~~~~
0_0_39596048_17132.cpp:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
  +++ |+#include <cstddef>
    1 | a#include <bits/stdc++.h>
0_0_39596048_17132.cpp:26:13: error: request for member 'front' in 'str', which is of non-class type 'const int'
   26 |     if (str.front() == '-') i += 1;
      |             ^~~~~
0_0_39596048_17132.cpp:26:29: error: 'i' was not declared in this scope
   26 |     if (str.front() == '-') i += 1;
      |                             ^
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
   27 |     while (i < str.size()) {
      |                    ^~~~
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
0_0_39596048_17132.cpp:27:12: error: 'i' was not declared in this scope
   27 |     while (i < str.size()) {
      |            ^
0_0_39596048_17132.cpp:27:20: error: request for member 'size' in 'str', which is of non-class type 'const int'
   27 |     while (i < str.size()) {
      |                    ^~~~
0_0_39596048_17132.cpp:28:14: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
   28 |       assert(isdigit(str[i]));
      |              ^~~~~~~
0_0_39596048_17132.cpp:28:14: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_39596048_17132.cpp:32:13: error: request for member 'front' in 'str', which is of non-class type 'const int'
   32 |     if (str.front() == '-' && v) v = umod - v;
      |             ^~~~~
0_0_39596048_17132.cpp: In member function 'modint<umod>& modint<umod>::operator/=(const modint<umod>&)':
0_0_39596048_17132.cpp:61:22: error: 'size_t' does not name a type
   61 |     static constexpr size_t ilim = 1 << 20;
      |                      ^~~~~~
0_0_39596048_17132.cpp:61:22: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
0_0_39596048_17132.cpp:62:23: error: 'ilim' was not declared in this scope
   62 |     static modint inv[ilim + 10];
      |                       ^~~~
0_0_39596048_17132.cpp:64:5: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
   64 |     assert(rhs.v);
      |     ^~~~~~
0_0_39596048_17132.cpp:66:14: error: 'inv' was not declared in this scope; did you mean 'int'?
   66 |     if (!sz) inv[1] = sz = 1;
      |              ^~~
      |              int
0_0_39596048_17132.cpp:68:47: error: 'inv' was not declared in this scope; did you mean 'int'?
   68 |       for (int i = sz + 1; i <= sz << 1; i++) inv[i] = -mod / i * inv[mod % i];
      |                                               ^~~
      |                                               int
0_0_39596048_17132.cpp:71:21: error: 'inv' was not declared in this scope; did you mean 'int'?
   71 |     return *this *= inv[rhs.v];
      |                     ^~~
      |                     int
0_0_39596048_17132.cpp: In function 'long long int gi()':
0_0_39596048_17132.cpp:95:20: error: 'getchar' was not declared in this scope
   95 |         char tmp = getchar();
      |                    ^~~~~~~
0_0_39596048_17132.cpp:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | a#include <bits/stdc++.h>
0_0_39596048_17132.cpp:96:16: error: 'isdigit' was not declared in this scope
   96 |         while(!isdigit(tmp)) tmp = getchar();
      |                ^~~~~~~
0_0_39596048_17132.cpp:98:15: error: 'isdigit' was not declared in this scope
   98 |         while(isdigit(tmp)){
      |               ^~~~~~~
0_0_39596048_17132.cpp: In function 'void pushDown(long long int)':
0_0_39596048_17132.cpp:162:17: error: 'assert' was not declared in this scope
  162 |                 assert(!(t.o & g));
      |                 ^~~~~~
0_0_39596048_17132.cpp:1:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
  +++ |+#include <cassert>
    1 | a#include <bits/stdc++.h>
0_0_39596048_17132.cpp:166:17: error: 'assert' was not declared in this scope
  166 |                 assert(!(t.a & g));
      |                 ^~~~~~
0_0_39596048_17132.cpp:166:17: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
0_0_39596048_17132.cpp:170:17: error: 'swap' was not declared in this scope
  170 |                 swap(son(1),son(0));
      |                 ^~~~
0_0_39596048_17132.cpp: In function 'int main()':
0_0_39596048_17132.cpp:254:33: error: 'printf' was not declared in this scope
  254 |                                 printf("%lld\n",queryMax(v));
      |                                 ^~~~~~
0_0_39596048_17132.cpp:254:33: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


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-09-20 12:25:13, Gzip enabled