#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 | #52356910 | Utilizator | |
Fișier | vase.cpp | Dimensiune | 2.69 KB |
Data încărcării | 27 Septembrie 2024, 11:02 | Scor / rezultat | Eroare de compilare |
vase.cpp:17:25: warning: missing terminating " character [enabled by default] cout << "A C ^ vase.cpp:17:17: error: missing terminating " character cout << "A C ^ vase.cpp:18:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:18:1: error: missing terminating " character vase.cpp:20:25: warning: missing terminating " character [enabled by default] cout << "B C ^ vase.cpp:20:17: error: missing terminating " character cout << "B C ^ vase.cpp:21:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:21:1: error: missing terminating " character vase.cpp:23:25: warning: missing terminating " character [enabled by default] cout << "R A ^ vase.cpp:23:17: error: missing terminating " character cout << "R A ^ vase.cpp:24:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:24:1: error: missing terminating " character vase.cpp:26:25: warning: missing terminating " character [enabled by default] cout << "R B ^ vase.cpp:26:17: error: missing terminating " character cout << "R B ^ vase.cpp:27:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:27:1: error: missing terminating " character vase.cpp:29:25: warning: missing terminating " character [enabled by default] cout << "A B ^ vase.cpp:29:17: error: missing terminating " character cout << "A B ^ vase.cpp:30:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:30:1: error: missing terminating " character vase.cpp:32:25: warning: missing terminating " character [enabled by default] cout << "B A ^ vase.cpp:32:17: error: missing terminating " character cout << "B A ^ vase.cpp:33:1: warning: missing terminating " character [enabled by default] "; break; ^ vase.cpp:33:1: error: missing terminating " character vase.cpp: In function 'void operatii(int, int)': vase.cpp:19:13: error: expected primary-expression before 'case' case 2: ^ vase.cpp:19: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ă.