Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108081 | 张之隽 | 十进制转二进制 | C++ | Compile Error | 0 MS | 0 KB | 233 | 2025-01-19 14:22:52 |
#include<bits/stdc++.h> using namespace std; int y[32]; int cnt=0; int main(){ int n; cin>>n; while(n!=0){ int yu=n%2; y[cnt]=yu; cnt++; n=n/2; for(int i=cnt-1;i>=0;i--){ cout<<y[i]; } return 0; }
Main.cc: In function 'int main()': Main.cc:19:1: error: expected '}' at end of input } ^