Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101537 | 李禹宸 | 统计数字字符个数 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2024-12-15 14:11:16 |
#include <iostream> using namespace std; int main(){ char s1[255]; int i=0,sum=0; cin>>s1; while(s1[i]!='\0'){ if(s1[i]>='0' && s1[i]<='9'){ } sum++; } i++; } cout<<sum; return 0; }
Main.cc:14:2: error: 'cout' does not name a type cout<