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_38988855_32457.cpp: In function 'int add(int, int)':
0_0_38988855_32457.cpp:7:1: error: 'A' was not declared in this scope
    7 | A[tt].to=b;
      | ^
0_0_38988855_32457.cpp:7:3: error: 'tt' was not declared in this scope
    7 | A[tt].to=b;
      |   ^~
0_0_38988855_32457.cpp:8:12: error: 'head' was not declared in this scope
    8 | A[tt].next=head[a];
      |            ^~~~
0_0_38988855_32457.cpp: At global scope:
0_0_38988855_32457.cpp:23:8: error: redefinition of 'struct Node'
   23 | struct Node
      |        ^~~~
0_0_38988855_32457.cpp:1:8: note: previous definition of 'struct Node'
    1 | struct Node
      |        ^~~~
0_0_38988855_32457.cpp:26:2: error: conflicting declaration 'int T [400000]'
   26 | }T[400000];
      |  ^
0_0_38988855_32457.cpp:4:2: note: previous declaration as 'Node T [400000]'
    4 | }T[400000];
      |  ^
0_0_38988855_32457.cpp:28:5: error: redefinition of 'int add(int, int)'
   28 | int add(int a,int b)
      |     ^~~
0_0_38988855_32457.cpp:5:5: note: 'int add(int, int)' previously defined here
    5 | int add(int a,int b)//ÒÔaµ½bµÄ±ß
      |     ^~~


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-02 08:27:30, Gzip enabled