結果
問題 | No.9001 標準入出力の練習問題(テスト用) |
ユーザー |
![]() |
提出日時 | 2018-06-01 10:37:03 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 117 ms |
コンパイル使用メモリ | 22,016 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-06-30 08:47:07 |
合計ジャッジ時間 | 561 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d",&A); | ~~~~~^~~~~~~~~ main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&B); | ~~~~~^~~~~~~~~ main.cpp:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%s",S); | ~~~~~^~~~~~~~
ソースコード
#include<stdio.h> int main(){ int A,B; char S[11]; scanf("%d",&A); scanf("%d",&B); scanf("%s",S); printf("%d %s\n",A+B,S); return 0; }