結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-05-07 07:19:50 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 273 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 19:32:32 |
合計ジャッジ時間 | 1,334 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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\n" ,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\n" ,d); | ~^ ~ | | | | | int | char * | %d main.c:6:1: warning: ignoring
ソースコード
#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\n" ,a); else if(b=e) printf("-1"); else printf("%s\n" ,d); return 0; }