QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#273466#1944. Circle of Friendsucup-team1576Compile Error//C++143.3kb2023-12-03 00:08:322023-12-03 00:08:33

详细

answer.code:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
answer.code:4:7: note: in expansion of macro ‘int’
    4 | const int N = 4e5 + 7, W = 20, Mod = 998244353;
      |       ^~~
answer.code:4:11: error: ‘N’ does not name a type
    4 | const int N = 4e5 + 7, W = 20, Mod = 998244353;
      |           ^
answer.code:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
answer.code:7:1: note: in expansion of macro ‘int’
    7 | int n; i64 a[N];
      | ^~~
answer.code:7:5: error: ‘n’ does not name a type
    7 | int n; i64 a[N];
      |     ^
answer.code:7:14: error: ‘N’ was not declared in this scope
    7 | int n; i64 a[N];
      |              ^
answer.code:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
answer.code:10:5: note: in expansion of macro ‘int’
   10 |     int x;
      |     ^~~
answer.code:10:9: error: ‘x’ does not name a type
   10 |     int x;
      |         ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:11:12: note: in expansion of macro ‘int’
   11 |     Modint(int o = 0) { x = o; }
      |            ^~~
answer.code:11:11: note: to match this ‘(’
   11 |     Modint(int o = 0) { x = o; }
      |           ^
answer.code:11:16: error: ‘o’ does not name a type
   11 |     Modint(int o = 0) { x = o; }
      |                ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:12:25: note: in expansion of macro ‘int’
   12 |     Modint &operator = (int o) { return x = o, *this; }
      |                         ^~~
answer.code:12:24: note: to match this ‘(’
   12 |     Modint &operator = (int o) { return x = o, *this; }
      |                        ^
answer.code:12:29: error: ‘o’ does not name a type
   12 |     Modint &operator = (int o) { return x = o, *this; }
      |                             ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:16:26: note: in expansion of macro ‘int’
   16 |     Modint &operator ^= (int b) { Modint a = *this, c = 1; for (; b; b >>= 1, a *= a) if (b & 1) c *= a; return x = c.x, *this; }
      |                          ^~~
answer.code:16:25: note: to match this ‘(’
   16 |     Modint &operator ^= (int b) { Modint a = *this, c = 1; for (; b; b >>= 1, a *= a) if (b & 1) c *= a; return x = c.x, *this; }
      |                         ^
answer.code:16:30: error: ‘b’ does not name a type
   16 |     Modint &operator ^= (int b) { Modint a = *this, c = 1; for (; b; b >>= 1, a *= a) if (b & 1) c *= a; return x = c.x, *this; }
      |                              ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:18:25: note: in expansion of macro ‘int’
   18 |     Modint &operator +=(int o) { return x = x + o >= Mod ? x + o - Mod : x + o, *this; }
      |                         ^~~
answer.code:18:24: note: to match this ‘(’
   18 |     Modint &operator +=(int o) { return x = x + o >= Mod ? x + o - Mod : x + o, *this; }
      |                        ^
answer.code:18:29: error: ‘o’ does not name a type
   18 |     Modint &operator +=(int o) { return x = x + o >= Mod ? x + o - Mod : x + o, *this; }
      |                             ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:19:25: note: in expansion of macro ‘int’
   19 |     Modint &operator -=(int o) { return x = x - o < 0 ? x - o + Mod : x - o, *this; }
      |                         ^~~
answer.code:19:24: note: to match this ‘(’
   19 |     Modint &operator -=(int o) { return x = x - o < 0 ? x - o + Mod : x - o, *this; }
      |                        ^
answer.code:19:29: error: ‘o’ does not name a type
   19 |     Modint &operator -=(int o) { return x = x - o < 0 ? x - o + Mod : x - o, *this; }
      |                             ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:20:25: note: in expansion of macro ‘int’
   20 |     Modint &operator *=(int o) { return x = 1ll * x * o % Mod, *this; }
      |                         ^~~
answer.code:20:24: note: to match this ‘(’
   20 |     Modint &operator *=(int o) { return x = 1ll * x * o % Mod, *this; }
      |                        ^
answer.code:20:29: error: ‘o’ does not name a type
   20 |     Modint &operator *=(int o) { return x = 1ll * x * o % Mod, *this; }
      |                             ^
answer.code:3:22: error: expected ‘)’ before ‘;’ token
    3 | #define int long long;
      |                      ^
answer.code:21:25: note: ...