結果
問題 |
No.508 超ゆとり教育
|
ユーザー |
![]() |
提出日時 | 2017-04-28 22:24:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 82 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 22,144 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 17:59:48 |
合計ジャッジ時間 | 3,184 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] 6 | scanf("%d",a); | ~^ ~ | | | | | int | int* main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d",a); | ~~~~~^~~~~~~~ main.cpp:6:14: warning: ‘a’ is used uninitialized [-Wuninitialized] 6 | scanf("%d",a); | ~~~~~^~~~~~~~
ソースコード
#include<stdio.h> int main(void) { int a; scanf("%d",a); printf("%d\n",a/3); }