#858
Expresie6
Se dă o expresie cu necunoscutele x y z
și coeficienți întregi. Să se reducă termenii asemenea și să se determine termenul din expresia rezultat cu coeficientul maxim.
Problema | Expresie6 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #10000495 | Utilizator | |
Fișier | expresie6.cpp | Dimensiune | 1.85 KB |
Data încărcării | 10 Iulie 2018, 17:02 | Scor / rezultat | 40 puncte |
expresie6.cpp: In function 'int main()': expresie6.cpp:40:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c=='x') ^ expresie6.cpp:44:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c=='y') ^ expresie6.cpp:48:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c=='z') ^ expresie6.cpp:68:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c=='x') ^ expresie6.cpp:72:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c=='y') ^ expresie6.cpp:76:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(c=='z') ^ expresie6.cpp:60:13: warning: 'u' may be used uninitialized in this function [-Wmaybe-uninitialized] semn=s[u]; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
6 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
Punctaj total | 40 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Expresie6 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.