Pagini recente » Borderou de evaluare (job #329360) | Borderou de evaluare (job #877589) | Borderou de evaluare (job #29415) | Borderou de evaluare (job #793565) | Borderou de evaluare (job #2487367)
Borderou de evaluare (job #2487367)
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 |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 2ms | 131kb | OK | 10 |
| 4 | 3ms | 131kb | OK | 10 |
| 5 | 2ms | 131kb | OK | 10 |
| 6 | 2ms | 131kb | OK | 10 |
| 7 | 2ms | 131kb | OK | 10 |
| 8 | 2ms | 131kb | OK | 10 |
| 9 | 4ms | 393kb | OK | 10 |
| 10 | 4ms | 393kb | OK | 10 |
| Punctaj total | 100 |