結果
| 問題 | No.2415 偶数判定!Nafmoくん |
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2023-08-17 18:16:40 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 43 ms |
| コンパイル使用メモリ | 21,572 KB |
| 最終ジャッジ日時 | 2026-03-07 13:57:43 |
| 合計ジャッジ時間 | 468 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function ‘main’:
main.c:21:9: error: C++ style comments are not allowed in ISO C90
21 | //printf("%d %d\n", i, j);
| ^
main.c:21:9: note: (this will be reported only once per input file)
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s", a);
| ^~~~~~~~~~~~~~
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%s", b);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main()
{
int i, j;
char a[65], b[65];
scanf("%s", a);
scanf("%s", b);
i = 0;
while(a[i] != '\0'){
i++;
}
j = 0;
while(b[j] != '\0'){
j++;
}
//printf("%d %d\n", i, j);
if(a[i - 1] == '1' && b[j - 1] == '1'){
printf("Odd\n");
}
else{
printf("Even\n");
}
return 0;
}
suppy193