Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106658 | 华雅萱 | 15几个数字组成 | C++ | Compile Error | 0 MS | 0 KB | 213 | 2025-01-16 14:40:13 |
#include<iostream> using namespace std; int main(){ int n,cnt=0; cin>>n; if(n<0){ n=n*-1 } while(n>0){ n=n/10; cnt++; } cout<<cnt; return 0; }
Main.cc: In function 'int main()': Main.cc:8:5: error: expected ';' before '}' token } ^