Submission #856348

# Submission time Handle Problem Language Result Execution time Memory
856348 2023-10-03T07:57:20 Z vjudge1 Password (RMI18_password) C
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
string s,a,b,ans;
int x=1,ss;
int main()
{
	ios::sync_with_stdio(false);
	//freopen("pass.in","r",stdin);
	//freopen("pass.out","w",stdout);
	cin>>s;
	ss=s.size();
	s=" "+s;
	a=s[1];
	b=s[ss];
	s.erase(ss,1);
	s.erase(1,1);
	ss-=2;
	for(int c=1;c<=ss;c++)
	{
		a+=s[c];
		b=s[ss]+b;
		if(a==b&&s.find(a)!=-1)
		{
			ans=a;
		}
		ss-=2;
		if(ss<3) break;
	}
	if(ans=="") cout<<"qwerty";
	else cout<<ans;
	return 0;
}//5468453

Compilation message

password.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.