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_23804379_27862.cpp: In function 'int main()':
0_0_23804379_27862.cpp:9:23: error: array must be initialized with a brace-enclosed initializer
         int result[1]=1,result[2]=1
                       ^
0_0_23804379_27862.cpp:9:33: error: conflicting declaration 'int result [2]'
         int result[1]=1,result[2]=1
                                 ^
0_0_23804379_27862.cpp:9:13: note: previous declaration as 'int result [1]'
         int result[1]=1,result[2]=1
             ^
0_0_23804379_27862.cpp:11:13: error: 'i' was not declared in this scope
         for(i=3; i<50; i++)
             ^
0_0_23804379_27862.cpp:20:15: error: 'i' was not declared in this scope
         int T=i-1;//和代码1对比一下就知道这有多恶心了.
               ^


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-10-06 19:30:47, Gzip enabled