結果
問題 |
No.289 数字を全て足そう
|
ユーザー |
![]() |
提出日時 | 2025-03-03 16:46:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 155 bytes |
コンパイル時間 | 568 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-03-03 16:46:37 |
合計ジャッジ時間 | 1,719 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 1 WA * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:17: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10000]’ [-Wformat=] 7 | scanf("%s",&str); | ~^ ~~~~ | | | | | char (*)[10000] | char* main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%s",&str); | ~~~~~^~~~~~~~~~~
ソースコード
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ char str[10000]; scanf("%s",&str); char *p = str; printf("%s",p); }