Borderou de evaluare (job #2523814)

Utilizator Iustin01Isciuc Iustin - Constantin Iustin01 Data 14 ianuarie 2020 19:27:53
Problema Ecuatii 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
12ms131kbOK!10
22ms131kbOK!10
32ms131kbOK!10
42ms131kbOK!10
52ms131kbOK!10
62ms131kbOK!10
72ms131kbOK!10
82ms131kbOK!10
93ms131kbOK!10
102ms131kbOK!10
Punctaj total100

Ceva nu functioneaza?