Borderou de evaluare (job #2693991)

Utilizator gasparrobert95Gaspar Robert Andrei gasparrobert95 Data 7 ianuarie 2021 19:19:59
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void sameVar()': main.cpp:77:20: warning: array subscript has type 'char' [-Wchar-subscripts] fv[a[i]] = 1; ^ main.cpp:79:21: warning: array subscript has type 'char' [-Wchar-subscripts] fv2[b[i]] = 1; ^ main.cpp: In function 'bool termen(std::__cxx11::string, int&)': main.cpp:97:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (pos < exp.size() && exp[pos] == '~') ~~~~^~~~~~~~~~~~ main.cpp:107:28: warning: array subscript has type 'char' [-Wchar-subscripts] bool rez = val[exp[pos]]; ^ main.cpp: In function 'bool _and(std::__cxx11::string, int&)': main.cpp:116:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (pos < exp.size() && exp[pos] == '&') ~~~~^~~~~~~~~~~~ main.cpp: In function 'bool _xor(std::__cxx11::string, int&)': main.cpp:123:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (pos < exp.size() && exp[pos] == '^') ~~~~^~~~~~~~~~~~ main.cpp: In function 'bool _or(std::__cxx11::string, int)': main.cpp:130:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (pos < exp.size() && exp[pos] == '|') ~~~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:163:13: error: no match for 'operator>>' (operand types are 'InParser' and 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}') fin >> a >> b; ~~~~^~~~ main.cpp:33:12: note: candidate: InParser& InParser::operator>>(int&) InParser& operator >> (int &n) { ^~~~~~~~ main.cpp:33:12: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'int&' main.cpp:50:12: note: candidate: InParser& InParser::operator>>(long long int&) InParser& operator >> (long long &n) { ^~~~~~~~ main.cpp:50:12: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'long long int&' In file included from /usr/include/c++/6/string:53:0, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/bits/basic_string.tcc:1437:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, Non zero exit status: 1

Ceva nu functioneaza?