Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92225 | 牛延希 | 短信计费 | C++ | Compile Error | 0 MS | 0 KB | 465 | 2024-09-28 16:32:40 |
#include<iostream> #include<algorithm> #include<cmath> using namespace std; int nyx(int n){ return ceil(n/70); }int niuyanxi(int n){ n=n*4; n=n*3; n=n*2; for(int i=1;i<=n;i++){ n-=i; }or(int i=1;i<=n;i++){ n+=i; }n/=2*3*4*5/((6+1-3)*2/4+3); return n; } int main(){ int n,a; double ans=0.0; cin>>n; for(int i=0;i<n;i++){ cin>>a; ans+=nyx((niuyanxi(a)); }cout<<ans; return 0; }
Main.cc: In function 'int niuyanxi(int)': Main.cc:14:6: error: expected primary-expression before 'or' token }or(int i=1;i<=n;i++){ ^ Main.cc:14:9: error: expected primary-expression before 'int' }or(int i=1;i<=n;i++){ ^ Main.cc:14:9: error: expected ')' before 'int' Main.cc:14:17: error: 'i' was not declared in this scope }or(int i=1;i<=n;i++){ ^ Main.cc: In function 'int main()': Main.cc:27:27: error: expected ')' before ';' token ans+=nyx((niuyanxi(a)); ^