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_29457386_66.cpp: In function 'double random()':
0_0_29457386_66.cpp:6:18: error: 'rand' was not declared in this scope
     int x = rand() % 1001;
                  ^
0_0_29457386_66.cpp: In function 'double E(double)':
0_0_29457386_66.cpp:14:24: error: 'pow' was not declared in this scope
     return 6 * pow(x, 7) + 8 * pow(x, 6) + 7 * pow(x, 3) + 5 * pow(x, 2) - y * x;
                        ^
0_0_29457386_66.cpp: In function 'double P(double)':
0_0_29457386_66.cpp:18:24: error: 'exp' was not declared in this scope
     return exp(-delta_E) * step / step0;
                        ^
0_0_29457386_66.cpp: In function 'int main()':
0_0_29457386_66.cpp:27:22: error: 'scanf' was not declared in this scope
     scanf("%d", &test);
                      ^
0_0_29457386_66.cpp:43:40: error: expected primary-expression before ')' token
                 else if (random() <0.4)) {
                                        ^
0_0_29457386_66.cpp:49:31: error: 'printf' was not declared in this scope
         printf("%.4lf\n", E(x));
                               ^


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-10-24 20:14:22, Gzip enabled