Submission #7454796


Source Code Expand

#include<stdio.h>
int main(void)
{
	int s;
	scanf("%s",s);
	printf("%spp\n",s);
	return 0;
}

Submission Info

Submission Time
Task A - ハンドルネーム
User kusumoto
Language C++14 (GCC 5.4.1)
Score 0
Code Size 99 Byte
Status WA
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:14: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int’ [-Wformat=]
  scanf("%s",s);
              ^
./Main.cpp:6:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int’ [-Wformat=]
  printf("%spp\n",s);
                   ^
./Main.cpp:5: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 All
Score / Max Score 0 / 100
Status
WA × 7
Set Name Test Cases
All sample_01.txt, sample_02.txt, test_aaaaaaaaaa.txt, test_myonmyon.txt, test_nemui.txt, test_onakasuita.txt, test_p.txt
Case Name Status Exec Time Memory
sample_01.txt WA 1 ms 128 KB
sample_02.txt WA 1 ms 128 KB
test_aaaaaaaaaa.txt WA 1 ms 128 KB
test_myonmyon.txt WA 1 ms 128 KB
test_nemui.txt WA 0 ms 128 KB
test_onakasuita.txt WA 0 ms 128 KB
test_p.txt WA 0 ms 128 KB