結果

問題 No.552 十分簡単な星1の問題
ユーザー pone7Lv
提出日時 2017-08-25 18:10:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 441 ms
コンパイル使用メモリ 54,484 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-15 15:41:47
合計ジャッジ時間 1,657 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
    6 |         scanf("%d",&tmp);
      |                ~^  ~~~~
      |                 |  |
      |                 |  long long int*
      |                 int*
      |                %lld
main.cpp:7:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
    7 |         printf("%d\n", tmp * 10);
      |                 ~^     ~~~~~~~~
      |                  |         |
      |                  int       long long int
      |                 %lld
main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d",&tmp);
      |         ~~~~~^~~~~~~~~~~

ソースコード

diff #

#include <cstdio>
#include <iostream>
using namespace std;
int main(){
	long long int tmp;
	scanf("%d",&tmp);
	printf("%d\n", tmp * 10);
} 
0