Submission #2202036
Source Code Expand
#include <iostream> #include <string> #include <functional> int main() { std::string S; std::cin >> S; std::string::size_type pos=S.find("AC") if(pos <6) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; }
Submission Info
Submission Time | |
---|---|
Task | A - Can you get AC? |
User | ike_1225 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 236 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:1: error: expected ‘,’ or ‘;’ before ‘if’ if(pos <6) ^ ./Main.cpp:10:1: error: ‘else’ without a previous ‘if’ else ^