結果
| 問題 | No.111 あばばばば |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-04-04 04:10:49 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 54 bytes |
| 記録 | |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 28,996 KB |
| 最終ジャッジ日時 | 2026-02-23 18:14:54 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | n;main(){n=!printf("%.0f\n",pow(atoi(gets(&n))/2,2));}
| ^
main.c: In function ‘main’:
main.c:1:13: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | n;main(){n=!printf("%.0f\n",pow(atoi(gets(&n))/2,2));}
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | n;main(){n=!printf("%.0f\n",pow(atoi(gets(&n))/2,2));}
main.c:1:29: warning: incompatible implicit declaration of built-in function ‘pow’ [-Wbuiltin-declaration-mismatch]
1 | n;main(){n=!printf("%.0f\n",pow(atoi(gets(&n))/2,2));}
| ^~~
main.c:1:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’
+++ |+#include <math.h>
1 | n;main(){n=!printf("%.0f\n",pow(atoi(gets(&n))/2,2));}
/usr/bin/ld: /tmp/ccmHZ6GQ.o: in function `main':
main.c:(.text.startup+0x12): 警告: the `gets' function is dangerous and should not be used.
ソースコード
n;main(){n=!printf("%.0f\n",pow(atoi(gets(&n))/2,2));}
hogeover30