Submission #00268
ソースコード
ステータス
項目 |
データ |
問題 |
0002 - 試験 |
ユーザー名 |
R2528
|
投稿日時 |
2025-08-21 10:41:45 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
355 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:11:22: error: in C++98 ‘scores’ must be initialized by constructor, not by ‘{...}’
std::vector<int> scores = {a, b, c};
^~~~~~
./Main.cpp:11:39: error: could not convert ‘{a, b, c}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<int>’
std::vector<int> scores = {a, b, c};
^
セット
テストケース