| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158150 | 袁昊贝 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 498 | 2026-08-20 16:51:11 |
#include <bits/stdc++.h> using namespace std; int main(){ long long n,m,T; cin>>T; for (int i=0;i<T;i++){ int cut=0; cin>>n>>m; for (int z=0;z<=m/5;x++){ for (int y=0;y<=m/2;y++){ int x=n-z-y; if (x<0){ break; } if (x+2y+5z==m){ cut++; } } } cout<<cut<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:29: error: 'x' was not declared in this scope
for (int z=0;z<=m/5;x++){
^
Main.cc:15:23: error: unable to find numeric literal operator 'operator""y'
if (x+2y+5z==m){
^
Main.cc:15:23: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:15:26: error: unable to find numeric literal operator 'operator""z'
if (x+2y+5z==m){
^
Main.cc:15:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes