Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78136 张之隽 15几个数字组成 C++ Compile Error 0 MS 0 KB 213 2024-06-16 15:18:41

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a ; int sum=0; while(a!=0){ n=n/10; sum++; } cout<<sum<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:3: error: 'n' was not declared in this scope
   n=n/10;
   ^