Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96045 | 杜春雨 | 11计算分段函数的值 | C++ | Compile Error | 0 MS | 0 KB | 283 | 2024-11-02 17:47:58 |
#include<bits/stdc++.h> using namespace std; int main() { double n; cin>>n; if(o<n&&n<5){ prantf("%.3lf",-x+2.5); } else if(5<x&&x<10){ prantf("%.3lf",2-1.5*(x-3)*3); } else{ prantf("%.3lf"x/2-1.5,10<=x<20); } cout<<n<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:7:6: error: 'o' was not declared in this scope if(o