結果
| 問題 |
No.423 ハムスター語初級(数詞)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-02 17:09:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-21 13:04:39 |
| 合計ジャッジ時間 | 611 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 9 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main()
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:7:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%s",s);
| ~~~~~^~~~~~~~
ソースコード
#include<stdio.h>
#include<string.h>
main()
{
char s[50];
scanf("%s",s);
if(strlen(s)==3){
printf("hum\n");
return 0;
}
else
{
printf("%shum\n",s);
return 0;
}
}