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_26498590_4183.cpp:2:5: error: 'a' does not name a type
     a[2] = 2;
     ^
0_0_26498590_4183.cpp:3:5: error: 'a' does not name a type
     a[3] = 3;
     ^
0_0_26498590_4183.cpp:4:5: error: 'a' does not name a type
     a[4] = 5;                             int count = 4;                        while(n--){                               int A = 0, B = 0;                     cin >> A >> B;                        int temp = B - A;                     if(temp > count){                         for(int i = count + 1; i <= temp; i++){                                         a[i] = a[i-1] + a[i-2];
     ^
0_0_26498590_4183.cpp:4:81: error: expected unqualified-id before 'while'
     a[4] = 5;                             int count = 4;                        while(n--){                               int A = 0, B = 0;                     cin >> A >> B;                        int temp = B - A;                     if(temp > count){                         for(int i = count + 1; i <= temp; i++){                                         a[i] = a[i-1] + a[i-2];
                                                                                 ^


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-25 16:18:56, Gzip enabled