結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-06-10 21:24:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 27,392 KB |
最終ジャッジ日時 | 2025-01-11 00:54:59 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 27 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%ld", &x); | ~~~~~^~~~~~~~~~~
ソースコード
#include <cstdio> #include <cassert> int main() { int n; scanf("%d", &n); assert(1 <= n and n <= 1000000); for (int i = 0; i < n; i++) { long x; scanf("%ld", &x); assert(0 <= x and x < 1000000000000000000); } }