Borderou de evaluare (job #3180378)

Utilizator oaspruOctavian Aspru oaspru Data 5 decembrie 2023 06:43:58
Problema XCopy Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:13: error: 'vector' was not declared in this scope 9 | vector <vector<int>> Gray(11); | ^~~~~~ main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 2 | #include <algorithm> +++ |+#include <vector> 3 | using namespace std; main.cpp:9:20: error: expected primary-expression before 'int' 9 | vector <vector<int>> Gray(11); | ^~~ main.cpp:12:13: error: 'Gray' was not declared in this scope 12 | Gray[i].emplace_back(j^(j>>1)); | ^~~~ main.cpp: In lambda function: main.cpp:15:23: error: expected primary-expression before 'int' 15 | vector<vector<int>> tmp; | ^~~ main.cpp:18:17: error: 'tmp' was not declared in this scope; did you mean 'tm'? 18 | tmp.emplace_back(Gray[i]); | ^~~ | tm main.cpp:18:34: error: 'Gray' was not declared in this scope 18 | tmp.emplace_back(Gray[i]); | ^~~~ main.cpp:20:21: error: 'tmp' was not declared in this scope; did you mean 'tm'? 20 | for(auto &i:tmp) | ^~~ | tm main.cpp:26:24: error: 'tmp' was not declared in this scope; did you mean 'tm'? 26 | for(int i=(int)tmp.size()-1;i;--i) | ^~~ | tm main.cpp:31:45: error: 'r' was not declared in this scope 31 | if(__builtin_popcount((l[j]^r[0]))==1) | ^ main.cpp:38:16: error: expected primary-expression before 'int' 38 | vector<int> res; | ^~~ main.cpp:39:21: error: 'tmp' was not declared in this scope; did you mean 'tm'? 39 | for(auto &i:tmp) | ^~~ | tm main.cpp:40:11: error: 'res' was not declared in this scope 40 | res.insert(res.end(),i.begin(),i.end()); | ^~~ main.cpp:41:16: error: 'res' was not declared in this scope 41 | return res; | ^~~ main.cpp: In function 'int main()': Non zero exit status: 1

Ceva nu functioneaza?