Tinginiai

Taškai: 0

Compile: FAIL

tinginiai.cpp:3:18: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’ 3 | int inVek(vector<auto> v, int x){ | ^~~~ tinginiai.cpp:3:22: error: template argument 1 is invalid 3 | int inVek(vector<auto> v, int x){ | ^ tinginiai.cpp:3:22: error: template argument 2 is invalid tinginiai.cpp: In function ‘int inVek(int, int)’: tinginiai.cpp:5:27: error: request for member ‘size’ in ‘v’, which is of non-class type ‘int’ 5 | for (int i = 0; i < v.size(); i++){ | ^~~~ tinginiai.cpp:6:18: error: invalid types ‘int[int]’ for array subscript 6 | if (v[i] == x){ | ^ tinginiai.cpp: In function ‘int main()’: tinginiai.cpp:36:24: error: cannot convert ‘std::vector<int>’ to ‘int’ 36 | int oc = inVek(norai, i+1); | ^~~~~ | | | std::vector<int> tinginiai.cpp:3:24: note: initializing argument 1 of ‘int inVek(int, int)’ 3 | int inVek(vector<auto> v, int x){ | ~~~~~~~~~~~~~^

nr.resulttimemessage