結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
nkhrlab
|
| 提出日時 | 2017-06-25 22:12:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 191 bytes |
| コンパイル時間 | 1,817 ms |
| コンパイル使用メモリ | 22,272 KB |
| 実行使用メモリ | 8,356 KB |
| 最終ジャッジ日時 | 2024-10-04 05:10:48 |
| 合計ジャッジ時間 | 2,253 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’:
main.cpp:8:32: warning: format ‘%s’ expects a matching ‘char*’ argument [-Wformat=]
8 | if(i != n) printf("%d %s\n", i);
| ~^
| |
| 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 %s\n", i);
}
return 0;
}
nkhrlab