| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158680 | 钱炜懿 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 270 | 2026-08-22 16:37:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y,a; cin>>n>>x>>y; s=n-y/x if(y%x!=0) { s--; } if(s<=0); { s=0 } cout<<s; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:5: error: 's' was not declared in this scope
s=n-y/x
^
Main.cc:4:15: warning: unused variable 'a' [-Wunused-variable]
int n,x,y,a;
^