| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157894 | 张蔚林 | 短信计费 | C++ | Compile Error | 0 MS | 0 KB | 328 | 2026-08-18 21:22:48 |
#include<bits/stdc++.h> using namespace std; double dx(int s){ double o=0; if(s%70!=0){ o=s/70*0.1+0.1; } else{ o=s/70*0.1; } return o; } int main(){ int n; cin>>n; int x[1501]; for(int i=0;i<n;i++){ cin>>x[i]; } for(int j=0;j<n;j++){ dx(j); } cout<<j; return 0; }
Main.cc: In function 'int main()': Main.cc:23:7: error: 'j' was not declared in this scope cout<