結果
| 問題 |
No.671 1000000007
|
| コンテスト | |
| ユーザー |
AAAAAAAAAAA
|
| 提出日時 | 2018-07-27 21:35:08 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 175 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 27,776 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 19:32:00 |
| 合計ジャッジ時間 | 2,374 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 9 |
コンパイルメッセージ
main.c: In function 'main':
main.c:8:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
8 | len = strlen(N);
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include <stdio.h>
+++ |+#include <string.h>
2 |
main.c:8:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
8 | len = strlen(N);
| ^~~~~~
main.c:8:11: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:8:18: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
8 | len = strlen(N);
| ^
| |
| int
main.c:8:18: note: 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);
}
AAAAAAAAAAA