Submission #60798
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:22:5: error: ‘sum’ was not declared in this scope
sum.at(i)+=sum.at(i-1)+data.at(i;)
^~~
./Main.cpp:22:5: note: suggested alternative: ‘sum2’
sum.at(i)+=sum.at(i-1)+data.at(i;)
^~~
sum2
./Main.cpp:22:37: error: expected ‘)’ before ‘;’ token
sum.at(i)+=sum.at(i-1)+data.at(i;)
~ ^
)
./Main.cpp:22:38: error: expected primary-expression before ‘)’ token
sum.at(i)+=sum.at(i-1)+data.at(i;)
^
./Main.cpp:27:13: error: ‘sum’ was not declared in this scope
cout << sum.at(i) << " " << endl;
^~~
./Main.cpp:27:13: note: suggested alternative: ‘sum2’
cout << sum.at(i) << " " << endl;
^~~
sum2
./Main.cpp:36:13: error: ‘sum’ was not declared in this scope
cout << sum.at(m)-sum.at(n-1) << endl;
^~~
./Main.cpp:36:13: note: suggested alternative: ‘sum2’
cout << sum.at(m)-sum.at(n-1) << endl;
^~~
sum2
セット
テストケース