結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
nkhrlab
|
| 提出日時 | 2017-06-25 22:13:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 22,272 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 05:12:31 |
| 合計ジャッジ時間 | 664 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 2 WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’:
main.cpp:7:13: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h>
int main(int argc, char *argv[]){
int n, i;
for(i = 1; i <= 10; i++)
{
scanf("%d", &n);
if(i != n) printf("%d\n", i);
}
return 0;
}
nkhrlab