0_0_34899545_12913.cpp:1:10: error: 'MAX' was not declared in this scope
double s[MAX];
^
0_0_34899545_12913.cpp: In function 'int main()':
0_0_34899545_12913.cpp:12:11: error: 'cin' was not declared in this scope
while(cin >> T){
^
0_0_34899545_12913.cpp:16:49: error: 'npow' was not declared in this scope
printf("%.10f\n",(1.0 - npow(m,n)) / (1.0 - m));
^
0_0_34899545_12913.cpp:16:63: error: 'printf' was not declared in this scope
printf("%.10f\n",(1.0 - npow(m,n)) / (1.0 - m));
^
0_0_34899545_12913.cpp:19:21: error: 's' was not declared in this scope
s[i] = 0.0;
^
0_0_34899545_12913.cpp:20:17: error: 's' was not declared in this scope
s[0] = 1.0;
^
0_0_34899545_12913.cpp:24:37: error: 'printf' was not declared in this scope
printf("%.10f\n",sum);
^
|