| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152909 | 左锶焜 | 出现k次的字符 | C++ | Compile Error | 0 MS | 0 KB | 525 | 2026-05-05 19:12:11 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int k,s=1; char a[2501]; cin>>k>>a; for(int i=0;i=srtlen(a)-2;i++){ if(a[i]==a[i+1]){ s++;} else{ if(s>=k) cout<<a[i]; } s=0; } } cout<<"No"; return 0; }
Main.cc: In function 'int main()':
Main.cc:11:27: error: 'srtlen' was not declared in this scope
for(int i=0;i=srtlen(a)-2;i++){
^
Main.cc: At global scope:
Main.cc:21:5: error: 'cout' does not name a type
cout<<"No";
^
Main.cc:22:5: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:23:1: error: expected declaration before '}' token
}
^