Borderou de evaluare (job #2814691)

Utilizator icnsrNicula Ionut icnsr Data 8 decembrie 2021 13:41:05
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:38: error: 'int64_t' in namespace 'std' does not name a type 12 | using difference_type = std::int64_t; | ^~~~~~~ main.cpp:52:40: error: 'int64_t' in namespace 'std' does not name a type 52 | NumIter& operator+=(const std::int64_t n) | ^~~~~~~ main.cpp: In member function 'auto NumIter<T>::operator-(const NumIter<T>&) const': main.cpp:60:36: error: 'difference_type' does not name a type 60 | return static_cast<difference_type>(value) - | ^~~~~~~~~~~~~~~ main.cpp:61:36: error: 'difference_type' does not name a type 61 | static_cast<difference_type>(other.value); | ^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:176:35: error: 'stdin' was not declared in this scope 176 | freopen("barbar.in", "r", stdin); | ^~~~~ main.cpp:5:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? 4 | #include <numeric> +++ |+#include <cstdio> 5 | main.cpp:176:9: error: 'freopen' was not declared in this scope; did you mean 'free'? 176 | freopen("barbar.in", "r", stdin); | ^~~~~~~ | free main.cpp:177:36: error: 'stdout' was not declared in this scope 177 | freopen("barbar.out", "w", stdout); | ^~~~~~ main.cpp:177:36: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:179:9: error: 'scanf' was not declared in this scope 179 | scanf("%d %d", &R, &C); | ^~~~~ main.cpp:217:17: error: 'puts' was not declared in this scope 217 | puts("-1"); | ^~~~ main.cpp:222:9: error: 'printf' was not declared in this scope 222 | printf("%d\n", res); | ^~~~~~ main.cpp:222:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? In file included from /usr/include/c++/10/algorithm:61, from main.cpp:1: /usr/include/c++/10/bits/stl_algobase.h: In instantiation of '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = NumIter<int>; _Tp = bool; _Compare = __gnu_cxx::__ops::_Iter_comp_val<main()::<lambda(int, int)> >]': /usr/include/c++/10/bits/stl_algo.h:2041:32: required from '_FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = NumIter<int>; _Tp = bool; _Compare = main()::<lambda(int, int)>]' main.cpp:213:32: required from here /usr/include/c++/10/bits/stl_algobase.h:1313:2: error: no type named 'difference_type' in 'struct std::iterator_traits<NumIter<int> >' 1313 | _DistanceType; | ^~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?