| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158152 | 陈襗葳 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 352 | 2026-08-20 16:52:44 |
#include <iostream> using namespace std; int main(){ long long T,n,m; cin>>T; for(int i=0;i<=T;i++){ cin>>n>>m; int cnt=0; for(int z=0;z<=m/5;z++){ for(int y=0;y<=m/2;y++){ int z=n-x-y; if(x<0){ cnt++; } } } cout<<cnt<<endl; } }
Main.cc: In function 'int main()':
Main.cc:11:19: error: 'x' was not declared in this scope
int z=n-x-y;
^
Main.cc:11:15: warning: unused variable 'z' [-Wunused-variable]
int z=n-x-y;
^