/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void Add_Edge(int, int, int)':
/in/foo.cc:26:9: error: 'tot' was not declared in this scope
     e[++tot].to=y;  e[tot].w=w;
         ^~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:39:12: error: 'Hash' was not declared in this scope
         if(Hash[a])
            ^~~~
/in/foo.cc:40:13: error: 'w' was not declared in this scope
             w[Hash[a]]+=tmp;
             ^
/in/foo.cc:43:23: error: 'n' was not declared in this scope
             Hash[a]=++n;
                       ^
/in/foo.cc:44:13: error: 'ip' was not declared in this scope
             ip[n]=a;
             ^~
/in/foo.cc:45:13: error: 'w' was not declared in this scope
             w[Hash[a]]=tmp;
             ^
/in/foo.cc:52:12: error: 'Hash' was not declared in this scope
         if(Hash[a]&&Hash[b])
            ^~~~
/in/foo.cc:53:38: error: 'w' was not declared in this scope
             Add_Edge(Hash[a],Hash[b],w[Hash[a]]+w[Hash[b]]),
                                      ^
/in/foo.cc: In function 'int SPFA(int)':
/in/foo.cc:61:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)
                    ^
/in/foo.cc:62:9: error: 'd' was not declared in this scope
         d[i]=INF;
         ^
/in/foo.cc:63:12: error: 'in' was not declared in this scope
     memset(in,0,sizeof(in));
            ^~
/in/foo.cc:64:5: error: 'd' was not declared in this scope
     d[s]=0; in[s]=1; q.push(s);
     ^
/in/foo.cc:80:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)
                    ^
/in/foo.cc: In function 'void out()':
/in/foo.cc:96:17: error: 'ip' was not declared in this scope
         cout << ip[sco[1].idx] << endl;
                 ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:102:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)
                    ^
/in/foo.cc:107:20: error: 'n' was not declared in this scope
     sort(sco+1,sco+n+1);
                    ^

信息

递交者
类型
递交
题目
P1184 CoVH之华丽的IP伪装
语言
C++
递交时间
2017-12-10 20:13:41
评测时间
2017-12-10 20:13:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes