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_39683260_7274.cpp:9:94: error: conflicting declaration 'long long int w'
    9 | int tot[2], head[2][SIZE], nxt[2][SIZE], ver[2][SIZE], w[2][SIZE], t, n, m, dis[SIZE], u, v, w, ans;
      |                                                                                              ^
0_0_39683260_7274.cpp:9:56: note: previous declaration as 'long long int w [2][1000001]'
    9 | int tot[2], head[2][SIZE], nxt[2][SIZE], ver[2][SIZE], w[2][SIZE], t, n, m, dis[SIZE], u, v, w, ans;
      |                                                        ^
0_0_39683260_7274.cpp: In function 'int main()':
0_0_39683260_7274.cpp:50:48: error: invalid conversion from 'long long int (*)[1000001]' to 'long long int' [-fpermissive]
   50 |                         read(u), read(v), read(w);
      |                                                ^
      |                                                |
      |                                                long long int (*)[1000001]
0_0_39683260_7274.cpp:11:23: note:   initializing argument 1 of 'void read(long long int&)'
   11 | inline void read(int &res){
      |                       ^
0_0_39683260_7274.cpp:50:48: error: cannot bind rvalue '(long long int)((long long int (*)[1000001])(& w))' to 'long long int&'
   50 |                         read(u), read(v), read(w);
      |                                                ^
0_0_39683260_7274.cpp:51:38: error: invalid conversion from 'long long int (*)[1000001]' to 'long long int' [-fpermissive]
   51 |                         add(0, u, v, w);
      |                                      ^
      |                                      |
      |                                      long long int (*)[1000001]
0_0_39683260_7274.cpp:18:35: note:   initializing argument 4 of 'void add(long long int, long long int, long long int, long long int)'
   18 | void add(int p, int x, int y, int z){
      |                                   ^
0_0_39683260_7274.cpp:52:38: error: invalid conversion from 'long long int (*)[1000001]' to 'long long int' [-fpermissive]
   52 |                         add(1, v, u, w);
      |                                      ^
      |                                      |
      |                                      long long int (*)[1000001]
0_0_39683260_7274.cpp:18:35: note:   initializing argument 4 of 'void add(long long int, long long int, long long int, long long int)'
   18 | void add(int p, int x, int y, int z){
      |                                   ^


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-29 10:11:42, Gzip enabled