Borderou de evaluare (job #2055921)

Utilizator narcis_vsGemene Narcis - Gabriel narcis_vs Data 3 noiembrie 2017 22:11:42
Problema Popeala Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Write(const T&)’: user.cpp:8:39: error: ‘ostream_iterator’ is not a member of ‘std’ std::copy(arr.begin(), arr.end(), std::ostream_iterator<type>(std::cout, "\n")); ^ user.cpp:8:65: error: expected primary-expression before ‘>’ token std::copy(arr.begin(), arr.end(), std::ostream_iterator<type>(std::cout, "\n")); ^ user.cpp: In function ‘std::tuple<std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, int> Read(const char*)’: user.cpp:10:86: error: return type ‘class std::tuple<std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, int>’ is incomplete std::tuple<std::vector<int>,std::vector<std::vector<int>>, int> Read(const char* file) { ^ user.cpp:22:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < line.size(); j++) ^ user.cpp:25:40: error: ‘make_tuple’ was not declared in this scope return make_tuple(scores, matrix, k); ^ user.cpp: In function ‘std::vector<long long int> Solve(const std::tuple<std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, int>&)’: user.cpp:32:5: error: ‘tie’ is not a member of ‘std’ std::tie(scores, matrix, k) = input; ^ user.cpp:51:76: error: ‘numeric_limits’ is not a member of ‘std’ std::vector<std::vector<long long>>dp(tests, std::vector<long long>(k, std::numeric_limits<long long>::max()/3)); ^ user.cpp:51:72: error: expected primary-expression before ‘(’ token std::vector<std::vector<long long>>dp(tests, std::vector<long long>(k, std::numeric_limits<long long>::max()/3)); ^ user.cpp:51:76: error: ‘numeric_limits’ is not a member of ‘std’ std::vector<std::vector<long long>>dp(tests, std::vector<long long>(k, std::numeric_limits<long long>::max()/3)); ^ user.cpp:51:96: error: expected primary-expression before ‘long’ std::vector<std::vector<long long>>dp(tests, std::vector<long long>(k, std::numeric_limits<long long>::max()/3)); ^ user.cpp: In function ‘int main()’: user.cpp:79:86: error: invalid use of void expression Write<std::vector<long long>, long long>("popeala.out",Solve(Read(("popeala.in")))); ^ user.cpp: In function ‘std::tuple<std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >, int> Read(const char*)’: user.cpp:11:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(file, "r", stdin); ^

Ceva nu functioneaza?