Submission #104687

#TimeUsernameProblemLanguageResultExecution timeMemory
104687promotaWiring (IOI17_wiring)C++14
Compilation error
0 ms0 KiB
long long int min_total_length(vector<int> r,vector<int> b){ long long int minLen=0; for(int j=0;j<r.length()-1;j++){ minLen += b[0]-r[j]; } for(int i=1;i<b.length();i++){ minLen += b[i]-r[r.length()-1]; } return minLen; }

Compilation message (stderr)

wiring.cpp:1:32: error: 'vector' was not declared in this scope
 long long int min_total_length(vector<int> r,vector<int> b){
                                ^~~~~~
wiring.cpp:1:39: error: expected primary-expression before 'int'
 long long int min_total_length(vector<int> r,vector<int> b){
                                       ^~~
wiring.cpp:1:46: error: 'vector' was not declared in this scope
 long long int min_total_length(vector<int> r,vector<int> b){
                                              ^~~~~~
wiring.cpp:1:53: error: expected primary-expression before 'int'
 long long int min_total_length(vector<int> r,vector<int> b){
                                                     ^~~
wiring.cpp:1:59: error: expression list treated as compound expression in initializer [-fpermissive]
 long long int min_total_length(vector<int> r,vector<int> b){
                                                           ^