結果
問題 | No.508 超ゆとり教育 |
ユーザー | WA_TLE |
提出日時 | 2017-04-28 23:15:41 |
言語 | C++11 (gcc 11.4.0) |
結果 |
CE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 348 ms |
コンパイル使用メモリ | 57,300 KB |
最終ジャッジ日時 | 2023-10-11 19:41:47 |
合計ジャッジ時間 | 715 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:13:14: error: ‘sqrt’ was not declared in this scope ans=(llint)(sqrt(n/3)); ^~~~ main.cpp:13:14: note: suggested alternative: ‘qsort’ ans=(llint)(sqrt(n/3)); ^~~~ qsort
ソースコード
#include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<functional> using namespace std; typedef long long int llint; #define pub push_back int main(void){ double n; llint ans; cin>>n; ans=(llint)(sqrt(n/3)); if(ans==0){ ans++; } cout<<ans<<endl; return 0; }