結果
問題 |
No.597 concat
|
ユーザー |
![]() |
提出日時 | 2018-02-01 17:23:10 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 22,016 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 00:19:57 |
合計ジャッジ時間 | 970 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 2 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&n); | ^~~~~~~~~~~~~~ main.c:12:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%s",s[i]); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <math.h> int main(void) { int n; char s[11][20]; int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",s[i]); } for(i=0;i<n;i++){ printf("%s",s[i]); } printf("\n"); return 0; }