結果
| 問題 |
No.8017 エスパー
|
| ユーザー |
|
| 提出日時 | 2016-07-21 21:13:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 110 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 22,656 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 07:38:15 |
| 合計ジャッジ時間 | 3,432 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:12: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int’ [-Wformat=]
6 | printf("%s\n", k);
| ~^ ~
| | |
| char* int
| %d
main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d%d", &s, &k);
| ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#include<cstdio>
using namespace std;
int main() {
int s, k;
scanf("%d%d", &s, &k);
printf("%s\n", k);
}