Skaičių skaičiavimas

Taškai: 0

Compile: FAIL

skaiciu_skaiciavimas.cpp: In function ‘int c(int, std::vector<int>)’: skaiciu_skaiciavimas.cpp:6:17: error: ‘class std::vector<int>’ has no member named ‘length’ 6 | int x = arr.length()/2; | ^~~~~~ skaiciu_skaiciavimas.cpp:7:27: error: ‘class std::vector<int>’ has no member named ‘length’ 7 | int y = ciel(ciel(arr.length()/2)/2); | ^~~~~~ skaiciu_skaiciavimas.cpp:7:18: error: ‘ciel’ was not declared in this scope; did you mean ‘ceil’? 7 | int y = ciel(ciel(arr.length()/2)/2); | ^~~~ | ceil skaiciu_skaiciavimas.cpp:7:13: error: ‘ciel’ was not declared in this scope; did you mean ‘ceil’? 7 | int y = ciel(ciel(arr.length()/2)/2); | ^~~~ | ceil skaiciu_skaiciavimas.cpp:8:29: error: ‘class std::vector<int>’ has no member named ‘length’ 8 | for (int i = 1; i < arr.length() ; i = i*2) { | ^~~~~~

nr.resulttimemessage