Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62857 李远扬 二进制小数转十进制 C++ Compile Error 0 MS 0 KB 264 2023-12-30 14:14:01

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int len = s.size(); long long sum = 0; for(int i = lne - 1;i >= 0;i++){ sum+=(s[i] - '0')*pow(2,len-1-i); } cout<<sum<<ednl; cout<<pow(a,2.3) return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:14: error: 'lne' was not declared in this scope
  for(int i = lne - 1;i >= 0;i++){
              ^
Main.cc:13:13: error: 'ednl' was not declared in this scope
  cout<