| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82830 | 刘宇轩 | 字符串包含判断 | C++ | Compile Error | 0 MS | 0 KB | 692 | 2024-07-13 15:55:50 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a.find(b)<a.size())cout<<"yes";return 0; cout<<"no"; return 0; } #include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a.find(b)<a.size())cout<<"yes";return 0; cout<<"no"; return 0; } #include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a.find(b)<a.size())cout<<"yes";return 0; cout<<"no"; return 0; } #include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; if(a.find(b)<a.size())cout<<"yes";return 0; cout<<"no"; return 0; } } } } } } } } } } }
Main.cc:9:5: error: stray '#' in program
} #include
^
Main.cc:17:5: error: stray '#' in program
} #include
^
Main.cc:25:5: error: stray '#' in program
} #include
^
Main.cc:9:6: error: 'include' does not name a type
} #include
^
Main.cc: In function 'int main()':
Main.cc:11:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:17:6: error: 'include' does not name a type
} #include
^
Main.cc: In function 'int main()':
Main.cc:19:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:25:6: error: 'include' does not name a type
} #include
^
Main.cc: In function 'int main()':
Main.cc:27:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:33:5: error: expected declaration before '}' token
} } } } } } } } } } }
^