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_36418006_13746.cpp: In function 'int main()':
0_0_36418006_13746.cpp:18:21: error: invalid types 'int[int]' for array subscript
    scanf("%d%d",&a[i],&b[i]);
                     ^
0_0_36418006_13746.cpp:18:27: error: invalid types 'int[int]' for array subscript
    scanf("%d%d",&a[i],&b[i]);
                           ^
0_0_36418006_13746.cpp:24:15: error: invalid types 'int[int]' for array subscript
      if(j==a[i]){
               ^
0_0_36418006_13746.cpp:25:16: error: invalid types 'int[int]' for array subscript
       x1=jh[a[i]];
                ^
0_0_36418006_13746.cpp:26:16: error: invalid types 'int[int]' for array subscript
       x2=jh[a[i]]+1;
                ^
0_0_36418006_13746.cpp:28:20: error: invalid types 'int[int]' for array subscript
      else if(j==b[i]){
                    ^
0_0_36418006_13746.cpp:29:16: error: invalid types 'int[int]' for array subscript
       y1=jh[b[i]];
                ^
0_0_36418006_13746.cpp:30:16: error: invalid types 'int[int]' for array subscript
       y2=jh[b[i]]+1;
                ^
0_0_36418006_13746.cpp:34:10: error: invalid types 'int[int]' for array subscript
    jh[a[i]]=min(x2,y1);
          ^
0_0_36418006_13746.cpp:35:10: error: invalid types 'int[int]' for array subscript
    jh[b[i]]=min(x1,y2);
          ^


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-29 04:59:00, Gzip enabled