#include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin>>n>>k; const int a=k; bitset<a> b(n); cout<<b; return 0; }
(注:以下内容为英文机翻) [错误]“ a”不能出现在常量表达式中 [错误]模板参数1无效 [错误]在’(’标记之前声明无效的类型