結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-03 09:56:11 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 59,504 KB |
| 最終ジャッジ日時 | 2026-04-04 11:03:15 |
| 合計ジャッジ時間 | 659 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function 'int main(int, const char**)':
main.cpp:9:9: error: 'uint64_t' was not declared in this scope
9 | uint64_t v = 1;
| ^~~~~~~~
main.cpp:2:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
1 | #include <iostream>
+++ |+#include <cstdint>
2 |
main.cpp:10:28: error: 'v' was not declared in this scope
10 | for (auto&& c : S) v = v * 2 + (c == 'R');
| ^
main.cpp:11:17: error: 'v' was not declared in this scope
11 | cout << v << endl;
| ^
ソースコード
#include <iostream>
using namespace std;
int main(int argc, const char* argv[])
{
string S;
cin >> S;
uint64_t v = 1;
for (auto&& c : S) v = v * 2 + (c == 'R');
cout << v << endl;
return 0;
}