結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-05-07 07:10:31 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 19:32:03 |
合計ジャッジ時間 | 1,292 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 15 RE * 2 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int *’ [-Wformat=] 6 | scanf("%s %d %c\n%s %d %c" ,&a,&b,&c,&d,&e,&f); | ~^ ~~ | | | | char * int * | %ls main.c:6:15: warning: format ‘%c’ expects argument of type ‘char *’, but argument 4 has type ‘int *’ [-Wformat=] 6 | scanf("%s %d %c\n%s %d %c" ,&a,&b,&c,&d,&e,&f); | ~^ ~~ | | | | char * int * | %lc main.c:6:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int *’ [-Wformat=] 6 | scanf("%s %d %c\n%s %d %c" ,&a,&b,&c,&d,&e,&f); | ~^ ~~ | | | | char * int * | %ls main.c:6:25: warning: format ‘%c’ expects argument of type ‘char *’, but argument 7 has type ‘int *’ [-Wformat=] 6 | scanf("%s %d %c\n%s %d %c" ,&a,&b,&c,&d,&e,&f); | ~^ ~~ | | | | char * int * | %lc main.c:9:10: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=] 9 | printf("%s" ,a); | ~^ ~ | | | | | int | char * | %d main.c:15:10: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=] 15 | printf("%s" ,d); | ~^ ~ | | | | | int | char * | %d main.c:6:1: warning: ignoring return value of
ソースコード
#include<stdio.h> int main() { int a,b,c,d,e,f; scanf("%s %d %c\n%s %d %c" ,&a,&b,&c,&d,&e,&f); if(b>e) printf("%s" ,a); else if(b=e) printf("-1"); else printf("%s" ,d); return 0; }