Submission #891178


Source Code Expand

int main(){
	
	char s[13];
	scanf("%s",s);
	printf("%c%c%c%c %c%c%c%c%c%c%c%c",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12]);
	
	return 0;
}

Submission Info

Submission Time
Task A - CODEFESTIVAL 2016
User simplex3
Language C (GCC 5.4.1)
Score 0
Code Size 170 Byte
Status WA
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:4:2: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
  scanf("%s",s);
  ^
./Main.c:4:2: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:4:2: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
./Main.c:5:2: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
  printf("%c%c%c%c %c%c%c%c%c%c%c%c",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12]);
  ^
./Main.c:5:2: warning: incompatible implicit declaration of built-in function ‘printf’
./Main.c:5:2: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
./Main.c:5:9: warning: too many arguments for format [-Wformat-extra-args]
  printf("%c%c%c%c %c%c%c%c%c%c%c%c",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12]);
         ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
WA × 3
WA × 6
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 WA 1 ms 128 KB
0_01.txt WA 1 ms 128 KB
0_02.txt WA 1 ms 128 KB
1_00.txt WA 1 ms 128 KB
1_01.txt WA 1 ms 128 KB
1_02.txt WA 1 ms 128 KB