Submission #891784
Source Code Expand
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ char s[14]; int i; for (int i = 0; i<14; i++){ s[i] = 0; } scanf("%s",s); for (int i = 100; i > 3; i--) { s[i + 1] = s[i]; } s[4] = ' '; printf("%s\n",s); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - CODEFESTIVAL 2016 |
User | ptrs |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 264 Byte |
Status | RE |
Exec Time | 112 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:10:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",s); ^
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | RE | 112 ms | 128 KB |
0_01.txt | RE | 110 ms | 128 KB |
0_02.txt | RE | 109 ms | 128 KB |
1_00.txt | RE | 109 ms | 128 KB |
1_01.txt | RE | 111 ms | 128 KB |
1_02.txt | RE | 111 ms | 128 KB |