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_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);
                                     ^


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-29 21:20:22, Gzip enabled