Borderou de evaluare (job #2052110)

Utilizator narcis_vsGemene Narcis - Gabriel narcis_vs Data 29 octombrie 2017 23:53:48
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:12: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:12: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:28:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < line.size(); j++) ^ 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:84:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < vec.size(); i++) { ^ 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:15: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); ^ user.cpp: In function ‘void Write(const char*, const T&) [with T = std::vector<long long int>; type = long long int]’: user.cpp:108:5: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(file, "w", stdout); ^

Ceva nu functioneaza?