Borderou de evaluare (job #2984931)

Utilizator alesia_mAlesia Marin alesia_m Data 25 februarie 2023 10:57:37
Problema Euler Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:10: error: expected unqualified-id before string constant 5 | ofstream("euler.out"); | ^~~~~~~~~~~ main.cpp:5:10: error: expected ')' before string constant 5 | ofstream("euler.out"); | ~^~~~~~~~~~~ | ) main.cpp: In function 'int main()': main.cpp:16:47: error: expected ')' before '!' token 16 | else if (tata[y]!=x && tata[x]!!=y) | ~ ^ | ) main.cpp:18:21: error: 'g' was not declared in this scope 18 | g<<"NU"; | ^ main.cpp:23:1: error: 'g' was not declared in this scope 23 | g<<"DA"<<"\n"; | ^ main.cpp:24:9: error: no match for 'operator<=' (operand types are 'std::complex<double>' and 'int') 24 | for(i=1i<=n;i++) | ~~^~~ | | | | | int | std::complex<double> In file included from /usr/include/c++/10/regex:62, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/10/bits/regex.h:1086:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)' 1086 | operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/10/bits/regex.h:1086:5: note: template argument deduction/substitution failed: main.cpp:24:11: note: 'std::complex<double>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 24 | for(i=1i<=n;i++) | ^ In file included from /usr/include/c++/10/regex:62, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/10/bits/regex.h:1192: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>&)' 1192 | operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/10/bits/regex.h:1192:5: note: template argument deduction/substitution failed: main.cpp:24:11: note: 'std::complex<double>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 24 | for(i=1i<=n;i++) | ^ In file included from /usr/include/c++/10/regex:62, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/10/bits/regex.h:1285: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>&)' 1285 | operator<=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?