/ Vijos /

记录详情

Compile Error

/in/foo.cc:9:1: error: 'll' does not name a type
 ll n;
 ^~
/in/foo.cc:13:5: error: 'll' does not name a type
     ll u, v, cap;
     ^~
/in/foo.cc:15:13: error: expected ')' before 'u'
     Edge(ll u, ll v, ll cap) : u(u), v(v), cap(cap) {}
             ^
/in/foo.cc:17:1: error: 'll' does not name a type
 ll R, S, T;
 ^~
/in/foo.cc:18:8: error: 'll' was not declared in this scope
 vector<ll> tab[20100]; // 边集
        ^~
/in/foo.cc:18:10: error: template argument 1 is invalid
 vector<ll> tab[20100]; // 边集
          ^
/in/foo.cc:18:10: error: template argument 2 is invalid
/in/foo.cc:19:1: error: 'll' does not name a type
 ll dis[20100];
 ^~
/in/foo.cc:20:1: error: 'll' does not name a type
 ll a[209][209];
 ^~
/in/foo.cc:21:1: error: 'll' does not name a type
 ll current[20100], m;
 ^~
/in/foo.cc:22:1: error: 'll' does not name a type
 ll cx[5] = {0, 0, 0, 1, -1};
 ^~
/in/foo.cc:23:1: error: 'll' does not name a type
 ll cy[5] = {0, 1, -1, 0, 0};
 ^~
/in/foo.cc:24:14: error: variable or field 'addedge' declared void
 void addedge(ll u, ll v, ll cap)
              ^~
/in/foo.cc:24:14: error: 'll' was not declared in this scope
/in/foo.cc:24:20: error: 'll' was not declared in this scope
 void addedge(ll u, ll v, ll cap)
                    ^~
/in/foo.cc:24:26: error: 'll' was not declared in this scope
 void addedge(ll u, ll v, ll cap)
                          ^~
/in/foo.cc:32:1: error: 'll' does not name a type
 ll BFS()
 ^~
/in/foo.cc:54:1: error: 'll' does not name a type
 ll dinic(ll x, ll maxflow)
 ^~
/in/foo.cc:76:1: error: 'll' does not name a type
 ll DINIC()
 ^~
/in/foo.cc: In function 'void init()':
/in/foo.cc:92:5: error: 'R' was not declared in this scope
     R = 0;
     ^
/in/foo.cc:93:10: error: 'll' was not declared in this scope
     for (ll i = 0; i <= T; i++)
          ^~
/in/foo.cc:93:20: error: 'i' was not declared in this scope
     for (ll i = 0; i <= T; i++)
                    ^
/in/foo.cc:93:25: error: 'T' was not declared in this scope
     for (ll i = 0; i <= T; i++)
                         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:98:24: error: 'n' was not declared in this scope
     scanf("%lld%lld", &n, &m);
                        ^
/in/foo.cc:98:28: error: 'm' was not declared in this scope
     scanf("%lld%lld", &n, &m);
                            ^
/in/foo.cc:100:5: error: 'R' was not declared in this scope
     R = 0;
     ^
/in/foo.cc:101:5: error: 'S' was not declared in this scope
     S = n * m + 1;
     ^
/in/foo.cc:102:5: error: 'T' was not declared in this scope
     T = n * m + 2;
     ^
/in/foo.cc:103:5: error: 'll' was not declared in this scope
     ll total = 0;
     ^~
/in/foo.cc:104:13: error: expected ';' before 'i'
     for (ll i = 1; i <= n; i++)
             ^
/in/foo.cc:104:20: error: 'i' was not declared in this scope
     for (ll i = 1; i <= n; i++)
                    ^
/in/foo.cc:106:17: error: expected ';' before 'j'
         for (ll j = 1; j <= m; j++)
                 ^
/in/foo.cc:106:24: error: 'j' was not declared in this scope
         for (ll j = 1; j <= m; j++)
                        ^
/in/foo.cc:108:28: error: 'a' was not declared in this scope
             scanf("%lld", &a[i][j]);
                            ^
/in/foo.cc:111:13: error: expected ';' before 'i'
     for (ll i = 1; i <= n; i++)
             ^
/in/foo.cc:111:20: error: 'i' was not declared in this scope
     for (ll i = 1; i <= n; i++)
                    ^
/in/foo.cc:113:17: error: expected ';' before 'j'
         for (ll j = 1; j <= m; j++)
                 ^
/in/foo.cc:113:24: error: 'j' was not declared in this scope
         for (ll j = 1; j <= m; j++)
                        ^
/in/foo.cc:115:17: error: 'a' was not declared in this scope
             if (a[i][j] == 1)
                 ^
/in/foo.cc:117:55: error: 'addedge' was not declared in this scope
                 addedge(S, (i - 1) * m + j, 0x3f3f3f3f);
                                                       ^
/in/foo.cc:121:55: error: 'addedge' was not declared in this scope
                 addedge((i - 1) * m + j, T, 0x3f3f3f3f);
                                                       ^
/in/foo.cc:124:21: error: expected ';' before 'k'
             for (ll k = 1; k <= 4; k++)
                     ^
/in/foo.cc:124:28: error: 'k' was not declared in this scope
             for (ll k = 1; k <= 4; k++)
                            ^
/in/foo.cc:126:20: error: expected ';' before 'tx'
                 ll tx = i + cx[k];
                    ^~
/in/foo.cc:127:20: error: expected ';' before 'ty'
                 ll ty = j + cy[k];
                    ^~
/in/foo.cc:128:22: error: 'tx' was not declared in this scope
                 if ((tx < 1) || (ty < 1) || (tx > n) || (ty > m))
                      ^~
/in/foo.cc:128:34: error: 'ty' was not declared in this scope
                 if ((tx < 1) || (ty < 1) || (tx > n) || (ty > m))
                                  ^~
/in/foo.cc:131:43: error: 'tx' was not declared in this scope
                 addedge((i - 1) * m + j, (tx - 1) * m + ty, 1);
                                           ^~
/in/foo.cc:131:57: error: 'ty' was not declared in this scope
                 addedge((i - 1) * m + j, (tx - 1) * m + ty, 1);
                                                         ^~
/in/foo.cc:131:62: error: 'addedge' was not declared in this scope
                 addedge((i - 1) * m + j, (tx - 1) * m + ty, 1);
                                                              ^
/in/foo.cc:135:28: error: 'DINIC' was not declared in this scope
     printf("%lld\n", DINIC());
                            ^

信息

递交者
类型
递交
题目
P1555 狼和羊的故事
语言
C++
递交时间
2017-08-08 14:56:14
评测时间
2017-08-08 14:56:14
评测机
分数
0
总耗时
304ms
峰值内存
35.375 MiB