結果
| 問題 | No.441 和か積 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-11-28 05:12:31 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 103 bytes |
| 記録 | |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 19,584 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 00:54:06 |
| 合計ジャッジ時間 | 1,098 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 1 |
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class
2 | a,b;main(t){f(a);f(b);a=!putchar(a*b-1?a*b<1?83:80:69);}
| ^
main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:2:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
2 | a,b;main(t){f(a);f(b);a=!putchar(a*b-1?a*b<1?83:80:69);}
| ^
main.c:2:5: warning: return type defaults to ‘int’ [-Wimplicit-int]
2 | a,b;main(t){f(a);f(b);a=!putchar(a*b-1?a*b<1?83:80:69);}
| ^~~~
main.c: In function ‘main’:
main.c:2:5: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:21: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
1 | #define f(x)for(;(t=getchar())>32;x=x?9:t-49);
| ^~~~~~~
main.c:2:13: note: in expansion of macro ‘f’
2 | a,b;main(t){f(a);f(b);a=!putchar(a*b-1?a*b<1?83:80:69);}
| ^
main.c:1:1: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
+++ |+#include <stdio.h>
1 | #define f(x)for(;(t=getchar())>32;x=x?9:t-49);
main.c:2:26: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
2 | a,b;main(t){f(a);f(b);a=!putchar(a*b-1?a*b<1?83:80:69);}
| ^~~~~~~
main.c:2:26: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
ソースコード
#define f(x)for(;(t=getchar())>32;x=x?9:t-49);
a,b;main(t){f(a);f(b);a=!putchar(a*b-1?a*b<1?83:80:69);}
testestest