Pagini recente » Cod sursa (job #2007698) | Borderou de evaluare (job #1546272) | Borderou de evaluare (job #2659383) | Borderou de evaluare (job #1510472) | Borderou de evaluare (job #2523814)
Borderou de evaluare (job #2523814)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:20:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < strlen(s); i++){
~~^~~~~~~~~~~
main.cpp:23:55: warning: NULL used in arithmetic [-Wpointer-arith]
if(s[i] == 'x' && (isdigit(s[i-1]) == NULL || i == 0) ){
^~~~
main.cpp:39:44: warning: NULL used in arithmetic [-Wpointer-arith]
while(isdigit(s[i]) != NULL && i < strlen(s)){
^~~~
main.cpp:39:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(isdigit(s[i]) != NULL && i < strlen(s)){
~~^~~~~~~~~~~
main.cpp:44:27: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(s[i] == 'x')
^
main.cpp:47:27: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(s[i] != 'x')
^
main.cpp:53:27: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(s[i] == 'x')
^
main.cpp:56:27: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(s[i] != 'x')
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK! | 10 |
| 2 | 2ms | 131kb | OK! | 10 |
| 3 | 2ms | 131kb | OK! | 10 |
| 4 | 2ms | 131kb | OK! | 10 |
| 5 | 2ms | 131kb | OK! | 10 |
| 6 | 2ms | 131kb | OK! | 10 |
| 7 | 2ms | 131kb | OK! | 10 |
| 8 | 2ms | 131kb | OK! | 10 |
| 9 | 3ms | 131kb | OK! | 10 |
| 10 | 2ms | 131kb | OK! | 10 |
| Punctaj total | 100 |