Borderou de evaluare (job #2487367)

Utilizator andreibazavanAndrei Bazavan andreibazavan Data 4 noiembrie 2019 17:24:42
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int preced(char)': main.cpp:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(op=='*' or op=='/') ^~ main.cpp:14:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return 0; ^~~~~~ main.cpp: In function 'int eval(std::__cxx11::string)': main.cpp:27:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<tokens.length();i++){ ~^~~~~~~~~~~~~~~~ main.cpp:34:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<tokens.length() && isdigit(tokens[i])) ~^~~~~~~~~~~~~~~~ main.cpp: In function 'int Calcul(int, int, char)': main.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
43ms131kbOK10
52ms131kbOK10
62ms131kbOK10
72ms131kbOK10
82ms131kbOK10
94ms393kbOK10
104ms393kbOK10
Punctaj total100

Ceva nu functioneaza?