結果
問題 | No.508 超ゆとり教育 |
ユーザー |
![]() |
提出日時 | 2017-04-28 22:29:37 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 1,181 ms |
コンパイル使用メモリ | 158,956 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 18:03:03 |
合計ジャッジ時間 | 2,495 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘void rd(double&)’: main.cpp:4:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%lf",&x); | ~~~~~^~~~~~~~~~
ソースコード
#include<bits/stdc++.h> using namespace std; void rd(double &x){ scanf("%lf",&x); } int main(){ double n, res; rd(n); res = n*n*3; printf("%.0f\n",res); return 0; } // cLay varsion 20170428-1 [beta] // --- original code --- // { // double n, res; // rd(n); // res = n*n*3; // printf("%.0f\n",res); // }