Borderou de evaluare (job #2480191)

Utilizator XsoundCristian-Ioan Roman Xsound Data 25 octombrie 2019 01:07:59
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool valid(poz)': main.cpp:23:38: error: 'n' was not declared in this scope if ( x.x < 1 || x.y < 1 || x.y > n || x.x > n) ^ main.cpp: In function 'void bk2(poz)': main.cpp:35:65: error: 'd' was not declared in this scope if ( b[ x.x + dx[i] ] [ x.y + dy[i] ] > maxim && a[x.x+d[x]][x.y+d[y]] > a[x.x][x.y] ) ^ main.cpp:35:77: error: 'y' was not declared in this scope if ( b[ x.x + dx[i] ] [ x.y + dy[i] ] > maxim && a[x.x+d[x]][x.y+d[y]] > a[x.x][x.y] ) ^ main.cpp:38:1: error: expected primary-expression before '}' token } ^ main.cpp: In function 'int main()': main.cpp:47:27: error: 'n' was not declared in this scope for ( int i = 1; i <= n; i++ ) ^ main.cpp:56:28: error: no match for 'operator>' (operand types are 'int' and 'poz') if ( y > maxim ) { maxim.x = p.x; maxim.y = p.y; } ~~^~~~~~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:995:5: note: candidate: template<class _BiIter> bool std::__cxx11::operator>(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&) operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) ^~~~~~~~ /usr/include/c++/6/bits/regex.h:995:5: note: template argument deduction/substitution failed: main.cpp:56:30: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' if ( y > maxim ) { maxim.x = p.x; maxim.y = p.y; } ^~~~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:1056:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&) operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1056:5: note: template argument deduction/substitution failed: main.cpp:56:30: note: mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int' if ( y > maxim ) { maxim.x = p.x; maxim.y = p.y; } ^~~~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:1136:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&) operator>(const sub_match<_Bi_iter>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1136:5: note: template argument deduction/substitution failed: main.cpp:56:30: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' if ( y > maxim ) { maxim.x = p.x; maxim.y = p.y; } Non zero exit status: 1

Ceva nu functioneaza?