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_39489181_25990.cpp:17:1: error: 'll' does not name a type
   17 | ll dis[N];
      | ^~
0_0_39489181_25990.cpp:18:1: error: 'll' does not name a type
   18 | ll mindis[N];
      | ^~
0_0_39489181_25990.cpp:20:25: error: 'll' does not name a type
   20 | struct Edge{int to, nxt;ll len;}e[N * 3];
      |                         ^~
0_0_39489181_25990.cpp:22:28: error: 'll' has not been declared
   22 | void addedge(int u, int v, ll t){
      |                            ^~
0_0_39489181_25990.cpp: In function 'void addedge(long long int, long long int, int)':
0_0_39489181_25990.cpp:23:35: error: too many initializers for 'Edge'
   23 |     e[++cnt]= (Edge){v, head[u], t};
      |                                   ^
0_0_39489181_25990.cpp: At global scope:
0_0_39489181_25990.cpp:27:5: error: redefinition of 'long long int lowbit(long long int)'
   27 | int lowbit(int x){return x & (-x);}
      |     ^~~~~~
0_0_39489181_25990.cpp:13:5: note: 'long long int lowbit(long long int)' previously defined here
   13 | int lowbit(int x){return x & (-x);}
      |     ^~~~~~
0_0_39489181_25990.cpp: In function 'void solve()':
0_0_39489181_25990.cpp:33:12: error: 'dis' was not declared in this scope; did you mean 'vis'?
   33 |     memset(dis, 0x3f, sizeof(dis));
      |            ^~~
      |            vis
0_0_39489181_25990.cpp:36:32: error: 'mindis' was not declared in this scope
   36 |     for (int i = 0;i <= n;++i) mindis[i] = dis[i], vis[i] = 0;
      |                                ^~~~~~
0_0_39489181_25990.cpp:37:5: error: 's' was not declared in this scope
   37 |     s = 1;
      |     ^
0_0_39489181_25990.cpp:55:44: error: 'struct Edge' has no member named 'len'
   55 |                 if (dis[v] > dis[u] + e[i].len){
      |                                            ^~~
0_0_39489181_25990.cpp:56:44: error: 'struct Edge' has no member named 'len'
   56 |                     dis[v] = dis[u] + e[i].len;
      |                                            ^~~
0_0_39489181_25990.cpp:61:36: error: 'mindis' was not declared in this scope
   61 |         for (int i = 0;i <= n;++i) mindis[i] = dis[i], vis[i] = 0;
      |                                    ^~~~~~
0_0_39489181_25990.cpp:65:37: error: 'mindis' was not declared in this scope
   65 |                     if (i & (1<<j)) mindis[i] = min(mindis[i], mindis[i ^ (1<<j)]);
      |                                     ^~~~~~
0_0_39489181_25990.cpp:66:17: error: 'mindis' was not declared in this scope
   66 |             if (mindis[i] + 1ll * k * i < dis[i]) dis[i] = mindis[i] + 1ll * k * i;
      |                 ^~~~~~
0_0_39489181_25990.cpp:76:44: error: 'struct Edge' has no member named 'len'
   76 |                 if (dis[v] > dis[u] + e[i].len){
      |                                            ^~~
0_0_39489181_25990.cpp:77:44: error: 'struct Edge' has no member named 'len'
   77 |                     dis[v] = dis[u] + e[i].len;
      |                                            ^~~


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-11-15 11:32:49, Gzip enabled