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_39184244_12665.cpp: In function 'int main()':
0_0_39184244_12665.cpp:45:22: error: jump to case label
   45 |                 case 2:
      |                      ^
0_0_39184244_12665.cpp:36:53: note:   crosses initialization of 'int val'
   36 |                         int u = read(), w = read(), val = read();
      |                                                     ^~~
0_0_39184244_12665.cpp:36:41: note:   crosses initialization of 'int w'
   36 |                         int u = read(), w = read(), val = read();
      |                                         ^
0_0_39184244_12665.cpp:36:29: note:   crosses initialization of 'int u'
   36 |                         int u = read(), w = read(), val = read();
      |                             ^
0_0_39184244_12665.cpp:46:29: error: redeclaration of 'int u'
   46 |                         int u = read(), w = read();
      |                             ^
0_0_39184244_12665.cpp:36:29: note: 'int u' previously declared here
   36 |                         int u = read(), w = read(), val = read();
      |                             ^
0_0_39184244_12665.cpp:46:41: error: redeclaration of 'int w'
   46 |                         int u = read(), w = read();
      |                                         ^
0_0_39184244_12665.cpp:36:41: note: 'int w' previously declared here
   36 |                         int u = read(), w = read(), val = read();
      |                                         ^
0_0_39184244_12665.cpp:62:22: error: jump to case label
   62 |                 case 3:
      |                      ^
0_0_39184244_12665.cpp:36:53: note:   crosses initialization of 'int val'
   36 |                         int u = read(), w = read(), val = read();
      |                                                     ^~~
0_0_39184244_12665.cpp:36:41: note:   crosses initialization of 'int w'
   36 |                         int u = read(), w = read(), val = read();
      |                                         ^
0_0_39184244_12665.cpp:36:29: note:   crosses initialization of 'int u'
   36 |                         int u = read(), w = read(), val = read();
      |                             ^
0_0_39184244_12665.cpp:63:29: error: redeclaration of 'int u'
   63 |                         int u = read(), v = read(), w = read();
      |                             ^
0_0_39184244_12665.cpp:36:29: note: 'int u' previously declared here
   36 |                         int u = read(), w = read(), val = read();
      |                             ^
0_0_39184244_12665.cpp:63:53: error: redeclaration of 'int w'
   63 |                         int u = read(), v = read(), w = read();
      |                                                     ^
0_0_39184244_12665.cpp:36:41: note: 'int w' previously declared here
   36 |                         int u = read(), w = read(), val = read();
      |                                         ^


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-09-30 09:23:43, Gzip enabled