結果
問題 |
No.552 十分簡単な星1の問題
|
ユーザー |
|
提出日時 | 2017-08-20 00:04:08 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 96 bytes |
コンパイル時間 | 780 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-14 15:56:29 |
合計ジャッジ時間 | 2,002 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 46 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:11: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[32]’ [-Wformat=] 6 | scanf("%s", &c); | ~^ ~~ | | | | | char (*)[32] | char * main.c:7:12: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[32]’ [-Wformat=] 7 | printf("%s0\n", &c); | ~^ ~~ | | | | char * char (*)[32] main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%s", &c); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { char c[32]; scanf("%s", &c); printf("%s0\n", &c); }