Submission #79779
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:6:5: error: ‘vector’ was not declared in this scope
vector<long>c(n),v(n);
^~~~~~
./Main.cpp:6:5: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
./Main.cpp:2:1:
+#include <vector>
using namespace std;
./Main.cpp:6:5:
vector<long>c(n),v(n);
^~~~~~
./Main.cpp:6:12: error: expected primary-expression before ‘long’
vector<long>c(n),v(n);
^~~~
./Main.cpp:8:14: error: ‘c’ was not declared in this scope
cin>>c[i]>>v[i];
^
./Main.cpp:8:20: error: ‘v’ was not declared in this scope
cin>>c[i]>>v[i];
^
./Main.cpp:13:21: error: ‘v’ was not declared in this scope
vS+=v[i];
^
./Main.cpp:14:21: error: ‘c’ was not declared in this scope
cS+=c[i];
^
セット
テストケース