Problem | dyingpolynomial |
---|---|
User | wongethan8192 |
Submission Time | 2023-03-10 16:18:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dyingpolynomial.cpp: In function ‘bool k(double, double, double, double, double)’:
dyingpolynomial.cpp:2:81: error: ‘j’ was not declared in this scope
2 | using namespace std;bool k(double d,double w,double x,double y,double z){return j>0&&w*j*j*j+x*j*j+y*j-z>=0;}
| ^
dyingpolynomial.cpp: In function ‘int main()’:
dyingpolynomial.cpp:9:74: error: too few arguments to function ‘bool k(double, double, double, double, double)’
9 | for(double j=floor(cbrt(z)/w-10);j<100001;j+=5)if(k(j,w,x,y,z)){if(!k(j-1))cout<<j;else if(!k(j-2))cout<<j-1;else if(!k(j-3))cout<<j-2;else if(!k(j-4))cout<<j-3;else cout<<j-4;break;}}
| ^
dyingpolynomial.cpp:2:26: note: declared here
2 | using namespace std;bool k(double d,double w,double x,double y,double z){return j>0