結果
| 問題 |
No.597 concat
|
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-10 15:09:17 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 158 bytes |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 24,960 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-10 15:09:21 |
| 合計ジャッジ時間 | 3,388 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 11 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:25: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
8 | scanf("%s",n);
| ~^ ~
| | |
| | int
| char *
main.c:9:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
9 | printf("%s",n);
| ~^ ~
| | |
| | int
| char *
| %d
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
main.c:8:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s",n);
| ^~~~~~~~~~~~~
ソースコード
#include <stdio.h>
void main(void){
int n = 0;
scanf("%d",&n);
char str[100] = "a";
for(int i = 0 ; i < n ; i++){
scanf("%s",n);
printf("%s",n);
}
}
Maeda