Borderou de evaluare (job #3170369)

Utilizator GILIEDAVIDGilie David Florin GILIEDAVID Data 17 noiembrie 2023 15:01:49
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 mult()': main.cpp:27:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | while(pos<s.size() && (s[pos]=='*' || s[pos]=='/')) | ~~~^~~~~~~~~ main.cpp: In function 'int add()': main.cpp:42:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 42 | while(pos<s.size() && (s[pos]=='+' || s[pos]=='-')) | ~~~^~~~~~~~~ main.cpp: At global scope: main.cpp:57:6: error: expected unqualified-id before 'return' 57 | } return 0; | ^~~~~~ main.cpp:58:1: error: expected declaration before '}' token 58 | } } | ^ main.cpp:58:6: error: expected declaration before '}' token 58 | } } | ^ main.cpp:59:1: error: expected declaration before '}' token 59 | } | ^ main.cpp:60:5: error: redefinition of 'int main()' 60 | int main() | ^~~~ main.cpp:53:5: note: 'int main()' previously defined here 53 | int main() | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?