Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158151 林睿 统计硬币 C++ Compile Error 0 MS 0 KB 381 2026-08-20 16:51:11

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { long long n,m,t; cin>>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<0)break; if(x+2y+5z==m)cnt++; } } cout<<cnt<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:19: error: unable to find numeric literal operator 'operator""y'
              if(x+2y+5z==m)cnt++;
                   ^
Main.cc:16:19: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:16:22: error: unable to find numeric literal operator 'operator""z'
              if(x+2y+5z==m)cnt++;
                      ^
Main.cc:16:22: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes