結果
問題 | No.9001 標準入出力の練習問題(テスト用) |
ユーザー | y_taira_c |
提出日時 | 2017-06-21 21:52:33 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 0 ms / 1,000 ms |
コード長 | 145 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 22,784 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-04-10 09:59:37 |
合計ジャッジ時間 | 606 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
6,812 KB |
testcase_01 | AC | 0 ms
6,944 KB |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[11]’ [-Wformat=] 9 | scanf("%d%d%s", &a, &b, &c); | ~^ ~~ | | | | char* char (*)[11] main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d%d%s", &a, &b, &c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio> using namespace std; int main() { int a,b; char c[11]; scanf("%d%d%s", &a, &b, &c); printf("%d %s\n",a+b,c); return 0; }