Pagini recente » Borderou de evaluare (job #2460804) | Borderou de evaluare (job #3316033) | Borderou de evaluare (job #3305972) | Borderou de evaluare (job #3328160) | Borderou de evaluare (job #3341401)
Borderou de evaluare (job #3341401)
Raport evaluator
Compilare:
main.cpp: In function 'int evaluare()':
main.cpp:22:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | while(s[i]=='+'||s[i]=='-'&&i<s.size())
| ~^~~~~~~~~
main.cpp:22:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
22 | while(s[i]=='+'||s[i]=='-'&&i<s.size())
main.cpp: In function 'int termen()':
main.cpp:32:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | while(s[i]=='*'||s[i]=='/'&&i<s.size())
| ~^~~~~~~~~
main.cpp:32:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
32 | while(s[i]=='*'||s[i]=='/'&&i<s.size())
main.cpp: In function 'int element()':
main.cpp:60:12: warning: 'res' may be used uninitialized [-Wmaybe-uninitialized]
60 | return res;
| ^~~
main.cpp:49:9: note: 'res' was declared here
49 | int res;
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | Incorect | 0 |
| 2 | 0ms | 303kb | OK | 10 |
| 3 | 0ms | 303kb | OK | 10 |
| 4 | 0ms | 303kb | Incorect | 0 |
| 5 | 0ms | 303kb | Incorect | 0 |
| 6 | 0ms | 303kb | Incorect | 0 |
| 7 | 0ms | 303kb | Incorect | 0 |
| 8 | 0ms | 303kb | Incorect | 0 |
| 9 | 0ms | 557kb | OK | 10 |
| 10 | 0ms | 557kb | OK | 10 |
| Punctaj total | 40 |