| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158205 | 章泽原 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 378 | 2026-08-20 17:10:59 |
#include<bits/stdc++.h> using namespace std; int main(){ long long t,n,m; cin>>t; for(int i=0;i<t;i++){ int cnt=0;cin>>n>>m; for(int x=0;x<=n;x++){ for(int y=0;y<=n;y++){ int z=n-x-y; if(z>=0 && z+2*y+5*z==m){ cnt++; } } } } cout<<cnt; }
Main.cc: In function 'int main()':
Main.cc:17:11: error: 'cnt' was not declared in this scope
cout<