Submission #3042481
Source Code Expand
#include<bits/stdc++.h> //#include<my.h> #define ll long long #define UP(a,b,i) for(int i=(a);i<=(b);i++) #define DOWN(a,b,i) for(int i=(a);i>=(b);i--) #define rep(a,b,i) UP(a,b-1,i) #define MEM(a,b) memset(a,b,sizeof(a)) #define Enter() printf("\n"); #define DEBUG printf("Passing [%s] in LINE %d...\n",__FUNCTION__,__LINE__) using namespace std; int ma=0x80000000; int mi=0x7fffffff; const ll zfc=0xffffffff; const ll mod=1e9+7; int main() { while(cin>>st) { if(st=='Left')cout<<'< ';else if(st=='Right')cout<<'> ';else if(st=='AtCoder')cout<<'A '; } Enter(); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スペース高橋君 |
User | lyclyc |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 613 Byte |
Status | CE |
Compile Error
./Main.cpp:19:10: warning: multi-character character constant [-Wmultichar] if(st=='Left')cout<<'< ';else ^ ./Main.cpp:19:23: warning: multi-character character constant [-Wmultichar] if(st=='Left')cout<<'< ';else ^ ./Main.cpp:20:10: warning: character constant too long for its type if(st=='Right')cout<<'> ';else ^ ./Main.cpp:20:24: warning: multi-character character constant [-Wmultichar] if(st=='Right')cout<<'> ';else ^ ./Main.cpp:21:10: warning: character constant too long for its type if(st=='AtCoder')cout<<'A '; ^ ./Main.cpp:21:26: warning: multi-character character constant [-Wmultichar] if(st=='AtCoder')cout<<'A '; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:17:13: error: ‘st’ was not declared in this scope while(cin>>st) ^