#include <vector>
void foo(std::vector<double>&r){

int len;

len = r.size(); //error value required as left operand of assignment

}

int main() {}