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_24791209_6899.cpp:7:43: error: redefinition of 'int t1'
 int t1,t2,i,j,k,n,m,tests,a[2101],b[2101],t1,t2;
                                           ^
0_0_24791209_6899.cpp:7:5: note: 'int t1' previously declared here
 int t1,t2,i,j,k,n,m,tests,a[2101],b[2101],t1,t2;
     ^
0_0_24791209_6899.cpp:7:46: error: redefinition of 'int t2'
 int t1,t2,i,j,k,n,m,tests,a[2101],b[2101],t1,t2;
                                              ^
0_0_24791209_6899.cpp:7:8: note: 'int t2' previously declared here
 int t1,t2,i,j,k,n,m,tests,a[2101],b[2101],t1,t2;
        ^
0_0_24791209_6899.cpp: In function 'int main()':
0_0_24791209_6899.cpp:11:3: error: expected ';' before 'for'
   for (i=1;i<=n;i++) scanf("%d",&a[i]);
   ^
0_0_24791209_6899.cpp:11:20: error: expected ';' before ')' token
   for (i=1;i<=n;i++) scanf("%d",&a[i]);
                    ^


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-07-07 15:35:23, Gzip enabled