| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151707 | 陈骏睿 | 字符串包含判断 | C++ | Compile Error | 0 MS | 0 KB | 559 | 2026-04-18 12:14:58 |
#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(){ string a,b; cin>>a>>b; for(int i=0;i<a.size();i++){ if(a[i]==b[0])f=1; } for(int j=i,k=0;j<b.size;j++;k++){ if(a[j]!=b[k])f=0; break; if(f=1){ cout<<"yes"<<endl; return 0; } } cout<<"no"<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i