結果
問題 | No.9001 標準入出力の練習問題(テスト用) |
ユーザー | nola_suz |
提出日時 | 2015-06-25 17:23:24 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 70 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 19,072 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-07-07 17:35:23 |
合計ジャッジ時間 | 398 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);} | ^~~~ main.c: In function ‘main’: main.c:1:3: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] main.c:1:19: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);} main.c:1:19: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);} | ^~~~~ main.c:1:19: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:46: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);} | ^~~~~~ main.c:1:46: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:46: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:1:46: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
i;main(j){char* a;scanf("%d%d%s",&i,&j,a);i=!printf("%d %s\n",i+j,a);}