Submission #2532166
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define EACH(i,a) for (auto& i : a) #define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i) #define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) RFOR(i,0,n) #define ALL(a) (a).begin(),(a).end() #define debug(x) cerr << #x << ":" << x << endl; #define OK(ok) cout << (ok ? "Yes" : "No") << endl; typedef long long ll; void CINT(){} template <class Head,class... Tail> void CINT(Head&& head,Tail&&... tail) { cin >> head; CINT(move(tail)...); } #define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__) #define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__) #define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__) const int INF = 1e9 + 1; const int MOD = 1e9 + 7; const int MAX_N = 1e5 + 1; int main() { cin.tie(0); ios::sync_with_stdio(false); stiring raw = "YAKI"; SCIN(s); if (s.size() < 4) { OK(false); return 0; } bool ok = true; REP(i, 4) { if (s[i] != raw[i]) ok = false; } OK(ok); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Snuke's favorite YAKINIKU |
User | task4233 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 1069 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:34:3: error: ‘stiring’ was not declared in this scope stiring raw = "YAKI"; ^ ./Main.cpp:42:17: error: ‘raw’ was not declared in this scope if (s[i] != raw[i]) ok = false; ^