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_16760768_24084.cpp:4:8: error: 'N' was not declared in this scope
 int AP[N],GP[N];
        ^
0_0_16760768_24084.cpp:4:14: error: 'N' was not declared in this scope
 int AP[N],GP[N];
              ^
0_0_16760768_24084.cpp:5:9: error: 'N' was not declared in this scope
 int num[N];
         ^
0_0_16760768_24084.cpp: In function 'int main()':
0_0_16760768_24084.cpp:16:25: error: 'num' was not declared in this scope
             scanf("%d",&num[i]);
                         ^
0_0_16760768_24084.cpp:19:13: error: 'AP' was not declared in this scope
             AP[i] = GP[i] = 2;
             ^
0_0_16760768_24084.cpp:19:21: error: 'GP' was not declared in this scope
             AP[i] = GP[i] = 2;
                     ^
0_0_16760768_24084.cpp:26:9: error: 'AP' was not declared in this scope
         AP[0] = GP[0] = 1;
         ^
0_0_16760768_24084.cpp:26:17: error: 'GP' was not declared in this scope
         AP[0] = GP[0] = 1;
                 ^
0_0_16760768_24084.cpp:30:17: error: 'num' was not declared in this scope
            if(2*num[i-1] == num[i-2]+num[i])
                 ^
0_0_16760768_24084.cpp:32:16: error: 'num' was not declared in this scope
            if (num[i]*1.0/num[i-1]==num[i-1]*1.0/num[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-07-09 05:46:51, Gzip enabled