| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158149 | 林睿 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 331 | 2026-08-20 16:50:09 |
#include<iostream> using namespace std; int main() { long long n,m,t; for(int i=0;i<t;i++){ int cnt=0; cin>>n>>m; for(int z=0;z<=m/5;z++) { for(int y=0;y<=n/2;y++) { int x=n-x-y; if(x+2y+5z==m)cnt++; } } cout<<cnt; } return 0; }
Main.cc: In function 'int main()':
Main.cc:14:19: error: unable to find numeric literal operator 'operator""y'
if(x+2y+5z==m)cnt++;
^
Main.cc:14:19: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:14:22: error: unable to find numeric literal operator 'operator""z'
if(x+2y+5z==m)cnt++;
^
Main.cc:14:22: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes