为什么这个会RE呀
#include<bits/stdc++.h>
using namespace std;
int main()
{
stack<int>stk;
long long x;
cin>>x;
int t=x;
int y,c;
while(t)
{
y=t%2;
stk.push(y);
t=t/2;
}
for(int i=0;;i++)
{
cout<<stk.top();
stk.pop();
if(stk.empty())break;
}
t=x;
while(t)
{
c=t%7;
stk.push(c);
t=t/7;
}
cout<<endl;
for(int i=0;;i++)
{
cout<<stk.top();
stk.pop();
if(stk.empty())break;
}
return 0;
}