Submission #543031
Source Code Expand
#include <stdio.h>
int main(){
char str[11];
scanf("%s", &str);
printf("%s%s\n",str,str);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Double String |
| User | niconico774 |
| Language | C (GCC 4.9.2) |
| Score | 100 |
| Code Size | 113 Byte |
| Status | AC |
| Exec Time | 25 ms |
| Memory | 796 KiB |
Compile Error
./Main.c: In function ‘main’:
./Main.c:5:2: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[11]’ [-Wformat=]
scanf("%s", &str);
^
./Main.c:5:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 24 ms | 796 KiB |
| 01-02.txt | AC | 23 ms | 788 KiB |
| 01-03.txt | AC | 24 ms | 792 KiB |
| 01-04.txt | AC | 24 ms | 792 KiB |
| 01-05.txt | AC | 24 ms | 788 KiB |
| 01-06.txt | AC | 24 ms | 788 KiB |
| sample-01.txt | AC | 24 ms | 792 KiB |
| sample-02.txt | AC | 25 ms | 784 KiB |