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