Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147357 赖泓宇 06计算f(x)的值 C++ Compile Error 0 MS 0 KB 1069 2026-02-04 16:13:50

Tests(0/0):


Code:

return tmp; } }; int main() { worktime stu, sum; int n; cin >> n; sum.hr = sum.minut = sum.sec = 0; for (int i = 1; i <= n; i++) { sum.hr = stu.hr >> stu.minut >> stu.sec; sum = sum + stu; } cout << sum.hr << "hour" << sum.minut << "minute" << sum.sec << "second"; return 0; }*/ //#include<bits/stdc++.h> //using namespace std; //int main() { // float pi=3.14159; // int s,r=4; // cout<<s<<endl; //} //#include<bits/stdc++.h> //using namespace std; //int main() { // int x, y, z; // cin >> x >> y >> z; // if (x <= y &&y<= z) { // cout << "YES"; // } else { // cout << "NO"; // } //} /* #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,t; cin >> a >> b >> c; if(b>a){ t=a; a=b; b=t; } if(c>b){ t=b; b=c; c=b; } if(c>a){ t=a; a=c; c=a; } cout<<a<<" "<<b<<" "<<c; } */ #include<bits/stdc++.h> using namespace std; int main() { double a,b,x,c,d; cin>>x>>a>>b>>c>>d; printf("%.5lf",a*x*x*x+b*x*x+c*x+d); }


Run Info:

Main.cc:1:3: error: expected unqualified-id before 'return'
   return tmp;
   ^
Main.cc:2:3: error: expected declaration before '}' token
   }
   ^