Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119331 | 王培臻 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 237 | 2025-05-17 14:03:01 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,s,d; cin>>a>>s>>d; if(y/x>=n ){ cout<<0; }else{ if(d%s==0){ cout<<a-s/d; }else{ cout<<(a-s/d-1); } } return 0; }
Main.cc: In function 'int main()': Main.cc:8:5: error: 'y' was not declared in this scope if(y/x>=n ){ ^ Main.cc:8:7: error: 'x' was not declared in this scope if(y/x>=n ){ ^ Main.cc:8:10: error: 'n' was not declared in this scope if(y/x>=n ){ ^