Submission #2397500


Source Code Expand

#include<cstdio>
int main()
{
	char a[5];
	gets(a);
	if(a[0]==a[1]&&a[2]==a[3])
	{
		if(a[0]!=a[2])
		{
			printf("Yes");
			return 0;
		}
	}
	printf("No");
	return 0;
}

Submission Info

Submission Time
Task A - DDCC型文字列
User luogu_bot1
Language C++14 (GCC 5.4.1)
Score 0
Code Size 184 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:8: error: ‘gets’ was not declared in this scope
  gets(a);
        ^