結果
| 問題 | No.304 鍵(1) |
| コンテスト | |
| ユーザー |
umashika
|
| 提出日時 | 2016-01-30 00:06:17 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 20,808 KB |
| 最終ジャッジ日時 | 2026-02-23 20:24:42 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function ‘main’:
main.c:17:37: error: C++ style comments are not allowed in ISO C90
17 | }while(strcmp(str,"unlocked")!=0);//strがunlockedと一致しないかぎり継続
| ^
main.c:17:37: note: (this will be reported only once per input file)
main.c:15:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
15 | scanf("%s",str);
| ^~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<string.h>
int main(void){
int i=0;
char str[9];
do{
if(i<10){
printf("%03d\n",i);
}
else if(i<100){
printf("%02d\n",i);
}else{
printf("%d\n",i);
}
scanf("%s",str);
i++;
}while(strcmp(str,"unlocked")!=0);//strがunlockedと一致しないかぎり継続
return 0;
}
umashika