結果
| 問題 | No.2323 Nafmo、A+Bをする |
| コンテスト | |
| ユーザー |
subsn
|
| 提出日時 | 2023-06-14 20:45:00 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 56 bytes |
| 記録 | |
| コンパイル時間 | 381 ms |
| コンパイル使用メモリ | 26,496 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 03:03:39 |
| 合計ジャッジ時間 | 4,326 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 17 |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b){
| ^~~~
main.c: In function 'main':
main.c:1:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
2 | scanf("%d",a);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b){
main.c:2:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
2 | scanf("%d",a);
| ^~~~~
main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:9: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
4 | puts(a^b);
| ^~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:4:15: warning: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
4 | puts(a^b);
| ~^~
| |
| int
main.c:4:15: note: expected 'const char *' but argument is of type 'int'
ソースコード
main(a,b){
scanf("%d",a);
scanf("%d",b);
puts(a^b);
}
subsn