| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158137 | 王慕哲 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 416 | 2026-08-20 16:42:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,T; cin>>T; for(int i=1;i<=T;i++){ int s=0; cin>>n>>m; for(int x=1;x<=n;x++){ for(int y=0;y<=m/2;y++){ int z=n-x-y; if(z>=0 && x+2*y+5*z==m){ s++; } } } } cout<<s; return 0; }
Main.cc: In function 'int main()':
Main.cc:19:11: error: 's' was not declared in this scope
cout<