| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158141 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 299 | 2026-08-20 16:46:18 |
include<bit/stdc++.h> using namespace std; int main(){ int cnt=0,n,m; cim>>n>>m; for(int x=0;x<=n;x++){ for(int y=0;y<=m/z;y++){ int z=n-x-y; if(z>=0 && x+2y+5z==m){ cnt++; } } }cout<<cnt; return 0; }
Main.cc:1:1: error: 'include' does not name a type
include
^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cim' was not declared in this scope
cim>>n>>m;
^
Main.cc:7:26: error: 'z' was not declared in this scope
for(int y=0;y<=m/z;y++){
^
Main.cc:9:26: error: unable to find numeric literal operator 'operator""y'
if(z>=0 && x+2y+5z==m){
^
Main.cc:9:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:9:29: error: unable to find numeric literal operator 'operator""z'
if(z>=0 && x+2y+5z==m){
^
Main.cc:9:29: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:13:6: error: 'cout' was not declared in this scope
}cout<