/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:2:5: error: 'ios' has not been declared
    2 |     ios::sync_with_stdio(false); cin.tie(0);
      |     ^~~
/in/foo.cc:2:34: error: 'cin' was not declared in this scope
    2 |     ios::sync_with_stdio(false); cin.tie(0);
      |                                  ^~~
/in/foo.cc:4:5: error: 'll' was not declared in this scope
    4 |     ll T; cin >> T;
      |     ^~
/in/foo.cc:4:18: error: 'T' was not declared in this scope
    4 |     ll T; cin >> T;
      |                  ^
/in/foo.cc:6:11: error: expected ';' before 'arr'
    6 |         ll arr[3]; cin >> arr[0] >> arr[1] >> arr[2];
      |           ^~~~
      |           ;
/in/foo.cc:6:27: error: 'arr' was not declared in this scope
    6 |         ll arr[3]; cin >> arr[0] >> arr[1] >> arr[2];
      |                           ^~~
/in/foo.cc:7:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |         sort(arr, arr+3);
      |         ^~~~
      |         short
/in/foo.cc:8:11: error: expected ';' before 'A'
    8 |         ll A = arr[0], B = arr[1], C = arr[2];
      |           ^~
      |           ;
/in/foo.cc:9:11: error: expected ';' before 'maxV'
    9 |         ll maxV = C;
      |           ^~~~~
      |           ;
/in/foo.cc:11:16: error: expected ';' before 'i'
   11 |         for (ll i = 1; i < MAXN; i++) {
      |                ^~
      |                ;
/in/foo.cc:11:24: error: 'i' was not declared in this scope
   11 |         for (ll i = 1; i < MAXN; i++) {
      |                        ^
/in/foo.cc:11:28: error: 'MAXN' was not declared in this scope
   11 |         for (ll i = 1; i < MAXN; i++) {
      |                            ^~~~
/in/foo.cc:12:13: error: 'adj1' was not declared in this scope
   12 |             adj1[i].clear(); adj2[i].clear(); adj3[i].clear();
      |             ^~~~
/in/foo.cc:12:30: error: 'adj2' was not declared in this scope
   12 |             adj1[i].clear(); adj2[i].clear(); adj3[i].clear();
      |                              ^~~~
/in/foo.cc:12:47: error: 'adj3' was not declared in this scope
   12 |             adj1[i].clear(); adj2[i].clear(); adj3[i].clear();
      |                                               ^~~~
/in/foo.cc:14:19: error: 'A' was not declared in this scope
   14 |         build_adj(A, adj1);
      |                   ^
/in/foo.cc:14:22: error: 'adj1' was not declared in this scope
   14 |         build_adj(A, adj1);
      |                      ^~~~
/in/foo.cc:14:9: error: 'build_adj' was not declared in this scope
   14 |         build_adj(A, adj1);
      |         ^~~~~~~~~
/in/foo.cc:15:19: error: 'B' was not declared in this scope
   15 |         build_adj(B, adj2);
      |                   ^
/in/foo.cc:15:22: error: 'adj2' was not declared in this scope
   15 |         build_adj(B, adj2);
      |                      ^~~~
/in/foo.cc:16:19: error: 'C' was not declared in this scope
   16 |         build_adj(C, adj3);
      |                   ^
/in/foo.cc:16:22: error: 'adj3' was not declared in this scope
   16 |         build_adj(C, adj3);
      |                      ^~~~
/in/foo.cc:18:11: error: expected ';' before 'ans'
   18 |         ll ans = 0;
      |           ^~~~
      |           ;
/in/foo.cc:20:13: error: 'mu' was not declared in this scope
   20 |         if (mu[1] != 0) {
      |             ^~
/in/foo.cc:21:20: error: expected ';' before 'u'
   21 |             for (ll u = 1; u <= A; u++) {
      |                    ^~
      |                    ;
/in/foo.cc:21:28: error: 'u' was not declared in this scope
   21 |             for (ll u = 1; u <= A; u++) {
      |                            ^
/in/foo.cc:23:19: error: expected ';' before 'mu_u'
   23 |                 ll mu_u = mu[u];
      |                   ^~~~~
      |                   ;
/in/foo.cc:24:24: error: expected ';' before 'v'
   24 |                 for (ll v : adj1[u]) {
      |                        ^~
      |                        ;
/in/foo.cc:33:13: error: expected primary-expression before '}' token
   33 |             }
      |             ^
/in/foo.cc:32:18: error: expected ';' before '}' token
   32 |                 }
      |                  ^
      |                  ;
   33 |             }
      |             ~     
/in/foo.cc:33:13: error: expected primary-expression before '}' token
   33 |             }
      |             ^
/in/foo.cc:32:18: error: expected ')' before '}' token
   32 |                 }
      |                  ^
      |                  )
   33 |             }
      |             ~     
/in/foo.cc:24:21: note: to match this '('
   24 |                 for (ll v : adj1[u]) {
      |                     ^
/in/foo.cc:33:13: error: expected primary-expression before '}' token
   33 |             }
      |             ^
/in/foo.cc:36:16: error: expected ';' before 'w'
   36 |         for (ll w = 2; w <= C; w++) {
      |                ^~
      |                ;
/in/foo.cc:36:24: error: 'w' was not declared in this scope
   36 |         for (ll w = 2; w <= C; w++) {
      |                        ^
/in/foo.cc:37:17: error: 'mu' was not declared in this scope
   37 |             if (mu[w] == 0) continue;
      |                 ^~
/in/foo.cc:38:13: error: 'vector' was not declared in this scope
   38 |             vector<ll>& L2 = adj2[w];
      |             ^~~~~~
/in/foo.cc:38:25: error: 'L2' was not declared in this scope
   38 |             vector<ll>& L2 = adj2[w];
      |                         ^~
/in/foo.cc:39:25: error: 'L3' was not declared in this scope
   39 |             vector<ll>& L3 = adj3[w];
      |                         ^~
/in/foo.cc:41:15: error: expected ';' before 'sz3'
   41 |             ll sz3 = L3.size();
      |               ^~~~
      |               ;
/in/foo.cc:42:29: error: 'sz3' was not declared in this scope
   42 |             vector<ll> val3(sz3);
      |                             ^~~
/in/foo.cc:42:24: error: 'val3' was not declared in this scope
   42 |             vector<ll> val3(sz3);
      |                        ^~~~
/in/foo.cc:43:20: error: expected ';' before 'i'
   43 |             for (ll i = 0; i < sz3; i++) {
      |                    ^~
      |                    ;
/in/foo.cc:43:28: error: 'i' was not declared in this scope
   43 |             for (ll i = 0; i < sz3; i++) {
      |                            ^
/in/foo.cc:44:19: error: expected ';' before 'v'
   44 |                 ll v = L3[i];
      |                   ^~
      |                   ;
/in/foo.cc:45:19: error: expected ';' before 'lcm_vw'
   45 |                 ll lcm_vw = lcm(v, w);
      |                   ^~~~~~~
      |                   ;
/in/foo.cc:46:28: error: 'mu' was not declared in this scope
   46 |                 val3[i] = (mu[v] * S[C / lcm_vw]) % MOD;
      |                            ^~
/in/foo.cc:46:31: error: 'v' was not declared in this scope
   46 |                 val3[i] = (mu[v] * S[C / lcm_vw]) % MOD;
      |                               ^
/in/foo.cc:46:36: error: 'S' was not declared in this scope
   46 |                 val3[i] = (mu[v] * S[C / lcm_vw]) % MOD;
      |                                    ^
/in/foo.cc:46:42: error: 'lcm_vw' was not declared in this scope
   46 |                 val3[i] = (mu[v] * S[C / lcm_vw]) % MOD;
      |                                          ^~~~~~
/in/foo.cc:46:53: error: 'MOD' was not declared in this scope
   46 |                 val3[i] = (mu[v] * S[C / lcm_vw]) % MOD;
      |                                                     ^~~
/in/foo.cc:49:15: error: expected ';' before 'sum_w'
   49 |             ll sum_w = 0;
      |               ^~~~~~
      |               ;
/in/foo.cc:50:20: error: expected ';' before 'u'
   50 |             for (ll u : L2) {
      |                    ^~
      |                    ;
/in/foo.cc:80:13: error: 'ans' was not declared in this scope
   80 |             ans = (ans + sum_w * mu[w]) % MOD;
      |             ^~~
/in/foo.cc:80:26: error: 'sum_w' was not declared in this scope
   80 |             ans = (ans + sum_w * mu[w]) % MOD;
      |                          ^~~~~
/in/foo.cc:80

信息

递交者
类型
递交
题目
P2049 旧试题
语言
C++
递交时间
2026-07-02 07:20:21
评测时间
2026-07-02 07:20:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes