Submission #213703
Source Code Expand
#include<stdio.h> int main() { int a; char s; scanf("%s", &s); if(s=="A" ) a=1; if(s=="B" ) a=2; if(s=="C" ) a=3; if(s=="D" ) a=4; if(s=="E" ) a=5; // 出力 printf("%d\n",a); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | katakana1818 |
Language | C (GCC 4.6.4) |
Score | 0 |
Code Size | 248 Byte |
Status | WA |
Exec Time | 20 ms |
Memory | 796 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:7:6: warning: comparison between pointer and integer [enabled by default] ./Main.c:8:13: warning: comparison between pointer and integer [enabled by default] ./Main.c:9:13: warning: comparison between pointer and integer [enabled by default] ./Main.c:10:13: warning: comparison between pointer and integer [enabled by default] ./Main.c:11:13: warning: comparison between pointer and integer [enabled by default] ./Main.c:6:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
Set Name | all | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
all | A.txt, B.txt, C.txt, D.txt, E.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
A.txt | AC | 18 ms | 796 KB |
B.txt | WA | 19 ms | 792 KB |
C.txt | WA | 19 ms | 704 KB |
D.txt | WA | 20 ms | 704 KB |
E.txt | WA | 19 ms | 688 KB |