| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82937 | 刘泽熙 | 只出现一次的字符 | C++ | Compile Error | 0 MS | 0 KB | 300 | 2024-07-13 16:40:28 |
include<iostream> include<string> using namespace std; int main(){ string s; int a[28]={0},i; cin>>s; for(i=0;i<s.size();++i) a[s[i]-'a']++; for(i=0;i<s.size();++i) if(a[s[i]-'a']==1) break; if(i<s.size()) cout<<s[i]; else cout<<"no"; }
Main.cc:1:1: error: 'include' does not name a type
include
^
Main.cc: In function 'int main()':
Main.cc:5:4: error: 'string' was not declared in this scope
string s;
^
Main.cc:7:4: error: 'cin' was not declared in this scope
cin>>s;
^
Main.cc:7:9: error: 's' was not declared in this scope
cin>>s;
^
Main.cc:13:19: error: 'cout' was not declared in this scope
if(i