| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136879 | 刘益梵 | 只出现一次的字符 | C++ | Compile Error | 0 MS | 0 KB | 285 | 2025-11-15 16:06:25 |
#include<bits/stdc++.h> using namespace std; int main(){ string a; int len=a.size(); cin>>a; for(int i=0;i<len;i++){ int cnt=0; for(int j=0;j<len;j++){ if(a[i] == a[j]) cnt++; } if(cnt==1){ cout<<s[i]; return 0; } } cout<<"no"; return 0; }
Main.cc: In function 'int main()':
Main.cc:13:10: error: 's' was not declared in this scope
cout<