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])
^
|