Submission #2105506


Source Code Expand

<?php
$s = fgets(STDIN);
if ($s[0] === $s[2] && $s[1] === $s[3]) {
    print "Yes\n";
} else {
    print "No\n";
}

Submission Info

Submission Time
Task A - ニコニコ文字列判定
User gidoichi
Language C++14 (GCC 5.4.1)
Score 0
Code Size 120 Byte
Status CE

Compile Error

./Main.cpp:1:1: error: expected unqualified-id before ‘<’ token
 <?php
 ^
./Main.cpp:3:1: error: expected unqualified-id before ‘if’
 if ($s[0] === $s[2] && $s[1] === $s[3]) {
 ^
./Main.cpp:5:3: error: expected unqualified-id before ‘else’
 } else {
   ^