/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream>
 ^
foo.cpp: In function 'double f(double)':
foo.cpp:11:8: error: 'axxx' was not declared in this scope
 return axxx+bxx+cx+d; }
        ^
foo.cpp:11:13: error: 'bxx' was not declared in this scope
 return axxx+bxx+cx+d; }
             ^
foo.cpp:11:17: error: 'cx' was not declared in this scope
 return axxx+bxx+cx+d; }
                 ^
foo.cpp: In function 'int main()':
foo.cpp:14:21: error: 'cin' was not declared in this scope
 double ans=-100.00; cin>>a>>b>>c>>d; for(;ans<=100.00;ans+=e) { if(f(ans)<eps && f(ans)>-eps) { printf("%.2lf ",ans); } }
                     ^
foo.cpp:14:116: error: 'printf' was not declared in this scope
 double ans=-100.00; cin>>a>>b>>c>>d; for(;ans<=100.00;ans+=e) { if(f(ans)<eps && f(ans)>-eps) { printf("%.2lf ",ans); } }
                                                                                                                    ^
foo.cpp: In function 'double f(double)':
foo.cpp:11:23: warning: control reaches end of non-void function [-Wreturn-type]
 return axxx+bxx+cx+d; }
                       ^

信息

递交者
类型
递交
题目
P1116 一元三次方程求解
语言
C++
递交时间
2015-10-07 17:30:11
评测时间
2015-10-07 17:30:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes