結果

問題 No.1485 運賃
コンテスト
ユーザー kuro
提出日時 2021-04-30 11:45:36
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 117 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 370 ms
コンパイル使用メモリ 60,656 KB
最終ジャッジ日時 2026-04-02 01:56:38
合計ジャッジ時間 908 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:6:3: error: 'uint32_t' was not declared in this scope
    6 |   uint32_t n, m;
      |   ^~~~~~~~
main.cpp:2:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
    1 | #include <iostream>
  +++ |+#include <cstdint>
    2 | 
main.cpp:7:10: error: 'n' was not declared in this scope
    7 |   cin >> n >> m;
      |          ^
main.cpp:7:15: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |   cin >> n >> m;
      |               ^
      |               tm

ソースコード

diff #
raw source code

#include <iostream>

using namespace std;

int main() {
  uint32_t n, m;
  cin >> n >> m;

  cout << n + m << endl;
}
0