Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111233 王思颜 十进制转二进制 C++ Compile Error 0 MS 0 KB 282 2025-03-01 11:06:23

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a; int main() { cin>>a; int a[32],j = 0; if (a == 0){ cout<<x; return 0; } while(a != 0){ int yu = a % 2; x[j] = yu; j++; a / 2; } for (int i = j - 1;i >= 0;i--){ xout<<x[i] } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:9: error: 'x' was not declared in this scope
   cout<