#873
Vase
Se dau dau două vase cu capacitatea A
, respectiv B
litri. Se cere să se măsoare cu ajutorul lor C
litri de apă.
Problema | Vase | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51013018 | Utilizator | |
Fișier | vase.cpp | Dimensiune | 2.82 KB |
Data încărcării | 19 Mai 2024, 14:00 | Scor / rezultat | Eroare de compilare |
vase.cpp:16:25: warning: missing terminating " character [enabled by default] cout << "A C ^ vase.cpp:16:17: error: missing terminating " character cout << "A C ^ vase.cpp:17:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:17:1: error: missing terminating " character vase.cpp:19:25: warning: missing terminating " character [enabled by default] cout << "B C ^ vase.cpp:19:17: error: missing terminating " character cout << "B C ^ vase.cpp:20:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:20:1: error: missing terminating " character vase.cpp:22:25: warning: missing terminating " character [enabled by default] cout << "R A ^ vase.cpp:22:17: error: missing terminating " character cout << "R A ^ vase.cpp:23:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:23:1: error: missing terminating " character vase.cpp:25:25: warning: missing terminating " character [enabled by default] cout << "R B ^ vase.cpp:25:17: error: missing terminating " character cout << "R B ^ vase.cpp:26:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:26:1: error: missing terminating " character vase.cpp:28:25: warning: missing terminating " character [enabled by default] cout << "A B ^ vase.cpp:28:17: error: missing terminating " character cout << "A B ^ vase.cpp:29:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:29:1: error: missing terminating " character vase.cpp:31:25: warning: missing terminating " character [enabled by default] cout << "B A ^ vase.cpp:31:17: error: missing terminating " character cout << "B A ^ vase.cpp:32:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:32:1: error: missing terminating " character vase.cpp: In function 'void operatii(int, int)': vase.cpp:18:13: error: expected primary-expression before 'case' case 2: ^ vase.cpp:18:13: error: expected ';' before 'case'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Vase 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ă.