結果
問題 |
No.1108 移調
|
ユーザー |
![]() |
提出日時 | 2025-04-01 14:09:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 450 ms |
コンパイル使用メモリ | 27,008 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-04-01 14:09:41 |
合計ジャッジ時間 | 1,374 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&val); | ~~~~~^~~~~~~~~~~ main.cpp:8:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&add); | ~~~~~^~~~~~~~~~~ main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d",&tmp); | ~~~~~^~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int val = 0; scanf("%d",&val); int add = 0; scanf("%d",&add); int tmp = 0; for(int i = 0;i < val;i ++){ scanf("%d",&tmp); printf("%d ",tmp + add); } }