0_0_29297258_22413.cpp:9:10: error: 'N' was not declared in this scope
int head[N], book[N];
^
0_0_29297258_22413.cpp:9:19: error: 'N' was not declared in this scope
int head[N], book[N];
^
0_0_29297258_22413.cpp:11:15: error: 'N' was not declared in this scope
ll p[70], dis[N];
^
0_0_29297258_22413.cpp:17:4: error: 'N' was not declared in this scope
}e[N];
^
0_0_29297258_22413.cpp: In function 'void add(int, int, int, long long int)':
0_0_29297258_22413.cpp:33:5: error: 'e' was not declared in this scope
e[cnt].to = b;
^
0_0_29297258_22413.cpp:36:19: error: 'head' was not declared in this scope
e[cnt].next = head[a];
^
0_0_29297258_22413.cpp: In function 'void Dijkstra(int)':
0_0_29297258_22413.cpp:44:5: error: 'dis' was not declared in this scope
dis[s] = 1;
^
0_0_29297258_22413.cpp:52:12: error: 'book' was not declared in this scope
if(book[t.pos]) continue ;
^
0_0_29297258_22413.cpp:53:9: error: 'book' was not declared in this scope
book[t.pos] = 1;
^
0_0_29297258_22413.cpp:54:21: error: 'head' was not declared in this scope
for(int i = head[t.pos]; i != -1; i = e[i].next)
^
0_0_29297258_22413.cpp:54:47: error: 'e' was not declared in this scope
for(int i = head[t.pos]; i != -1; i = e[i].next)
^
0_0_29297258_22413.cpp: In function 'int main()':
0_0_29297258_22413.cpp:81:13: error: 'book' was not declared in this scope
memset(book, 0, sizeof(book));
^
0_0_29297258_22413.cpp:82:10: error: 'head' was not declared in this scope
memset(head, -1, sizeof(head));
^
0_0_29297258_22413.cpp:84:26: error: 'N' was not declared in this scope
for(int i = 0; i <= N; i++)
^
0_0_29297258_22413.cpp:85:4: error: 'dis' was not declared in this scope
dis[i] = INF;
^
0_0_29297258_22413.cpp:98:26: error: 'dis' was not declared in this scope
printf("%.0f\n", dis[n] == INF ? -1 : floor(log2(dis[n])));
^
|