Submission #2406215
Source Code Expand
#include <iostream> int main() { std::String A, B, C; std::cin >> A >> B >> C; if (A.back == B.front && B.back == C.front) { std::cout << "YES" <<std::endl; } else { std::cout << "NO" <<std::endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Shiritori |
User | fazerog02 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 330 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:3:8: error: ‘String’ is not a member of ‘std’ std::String A, B, C; ^ ./Main.cpp:4:20: error: ‘A’ was not declared in this scope std::cin >> A >> B >> C; ^ ./Main.cpp:4:25: error: ‘B’ was not declared in this scope std::cin >> A >> B >> C; ^ ./Main.cpp:4:30: error: ‘C’ was not declared in this scope std::cin >> A >> B >> C; ^