| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135678 | 李俊博 | 只出现一次的字符 | C++ | Compile Error | 0 MS | 0 KB | 369 | 2025-11-08 11:24:33 |
#include<bits/stdc++.h> using namespace std; int m[159]; int main(){ string a; cin>>a; for(int i=0;i<s.length();i++){ m[s[i]]++; } int sb=2e9; for(int i=97;i<=122;i++){ if(m[i]==1){ if(sb>s.find(char(i))){ sb=s.find(char(i)); } } if(sb==2e9){ cout<<"no" }else{ cout<<s[sb]; } } cout<<sb; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:16: error: 's' was not declared in this scope
for(int i=0;is.find(char(i))){
^
Main.cc:21:3: error: expected ';' before '}' token
}else{
^
Main.cc:22:10: error: 's' was not declared in this scope
cout<