結果
問題 | No.671 1000000007 |
ユーザー | AAAAAAAAAAA |
提出日時 | 2018-07-27 21:35:08 |
言語 | C (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 689 ms |
コンパイル使用メモリ | 26,752 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-18 02:49:31 |
合計ジャッジ時間 | 2,233 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
コンパイルメッセージ
main.c: 関数 ‘main’ 内: main.c:8:11: 警告: 関数 ‘strlen’ の暗黙的な宣言です [-Wimplicit-function-declaration] 8 | len = strlen(N); | ^~~~~~ main.c:2:1: 備考: include ‘<string.h>’ or provide a declaration of ‘strlen’ 1 | #include <stdio.h> +++ |+#include <string.h> 2 | main.c:8:11: 警告: 組み込み関数 ‘strlen’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] 8 | len = strlen(N); | ^~~~~~ main.c:8:11: 備考: include ‘<string.h>’ or provide a declaration of ‘strlen’ main.c:8:18: 警告: 1 番目の ‘strlen’ の引数へ渡すときに整数からキャスト無しにポインタを作成しています [-Wint-conversion] 8 | len = strlen(N); | ^ | | | int main.c:8:18: 備考: expected ‘const char *’ but argument is of type ‘int’
ソースコード
#include <stdio.h> int main(void){ int N,len; scanf("%d",&N); len = strlen(N); if(10 - len < 0){ len = N * -1; } printf("%d",len); }