結果
問題 |
No.1445 新入生プログラミング鯖
|
ユーザー |
|
提出日時 | 2021-04-29 06:47:30 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-08 05:59:11 |
合計ジャッジ時間 | 662 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 10 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&N); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> int main(void) { int N,i; printf("新人さんの数は?\n"); scanf("%d",&N); if(N<1 || 10<N){ printf("error\n"); exit(1); } for(i=0; i<N; i++) printf("Hello! You're new here, righr? It's nice to meet you.\n"); return 0; }