Borderou de evaluare (job #3225636)

Utilizator tudor_costinCostin Tudor tudor_costin Data 18 aprilie 2024 12:08:06
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int getnr()': main.cpp:20:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | while(pos<s.size() && iscif(s[pos])) | ~~~^~~~~~~~~ main.cpp: At global scope: main.cpp:27:1: error: ISO C++ forbids declaration of 'termen' with no type [-fpermissive] 27 | termen() | ^~~~~~ main.cpp:42:1: error: ISO C++ forbids declaration of 'prod' with no type [-fpermissive] 42 | prod() | ^~~~ main.cpp: In function 'int prod()': main.cpp:45:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | while(pos<s.size() && (s[pos]=='*' || s[pos]=='/')) | ~~~^~~~~~~~~ main.cpp: At global scope: main.cpp:62:1: error: ISO C++ forbids declaration of 'suma' with no type [-fpermissive] 62 | suma() | ^~~~ main.cpp: In function 'int suma()': main.cpp:65:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 65 | while(pos<s.size() && (s[pos]=='+' ||s[pos]=='-')) | ~~~^~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?