Borderou de evaluare (job #765278)

Utilizator avatar stefanvilcescu Nerdvana 7 Stefan Vilcescu stefanvilcescu IP ascuns
Problemă Binar (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 27 feb. 2024 15:53:26 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:9: error: 'i' was not declared in this scope 25 | for(i=0; i<4; i++){ | ^ main.cpp:29:23: error: no match for 'operator-' (operand types are 'long long int' and 'std::pair<const long long int, int>') 29 | ok=frecv[x-e]; | ~^~ | | | | | std::pair<const long long int, int> | long long int In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:67, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/algorithm:60, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:51, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:625:5: note: candidate: 'template<class _IteratorL, class _IteratorR> decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 625 | operator-(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:625:5: note: template argument deduction/substitution failed: main.cpp:29:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'long long int' 29 | ok=frecv[x-e]; | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1800:5: note: candidate: 'template<class _IteratorL, class _IteratorR> decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1800 | operator-(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1800:5: note: template argument deduction/substitution failed: main.cpp:29:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'long long int' 29 | ok=frecv[x-e]; | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ccomplex:39, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:127: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:365:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const complex<_Tp>&)' 365 | operator-(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:365:5: note: template argument deduction/substitution failed: main.cpp:29:24: note: mismatched types 'const std::complex<_Tp>' and 'long long int' 29 | ok=frecv[x-e]; | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:374:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const complex<_Tp>&, const _Tp&)' 374 | operator-(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:374:5: note: template argument deduction/substitution failed: main.cpp:29:24: note: mismatched types 'const std::complex<_Tp>' and 'long long int' 29 | ok=frecv[x-e]; | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:383:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator-(const _Tp&, const complex<_Tp>&)' 383 | operator-(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/complex:383:5: note: template argument deduction/substitution failed: main.cpp:29:24: note: 'std::pair<const long long int, int>' is not derived from 'const std::complex<_Tp>' 29 | ok=frecv[x-e];