Submission #1777087
Source Code Expand
#include <stdio.h> using namespace std; int main() { char x[5][1] = {'A', 'B', 'C', 'D', 'E'}; int y[5] = {1, 2, 3, 4, 5}; int z; scanf("%d", &z); for(int i;i < 5;i++){ if(x[i][1] == z){ printf("%d\n", y[i]); } } }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | rabbitS |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 241 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &z); ^
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 | WA | 1 ms | 128 KB |
B.txt | WA | 1 ms | 128 KB |
C.txt | WA | 1 ms | 128 KB |
D.txt | WA | 1 ms | 128 KB |
E.txt | WA | 1 ms | 128 KB |