#3810
Se dă raza unei sfere. Aflați aria și volumul sferei.
matematică
| Problema | Sfera | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63988657 | Utilizator | |
| Fișier | sfera.cpp | Dimensiune | 365 B |
| Data încărcării | 02 Aprilie 2026, 10:49 | Scor/rezultat | Eroare de compilare |
sfera.cpp: In function 'int main()': sfera.cpp:15:34: error: invalid operands of types 'double' and 'int' to binary 'operator%' cout << A/100 << "." << A/10%10 << A%10 << " " << V/100 << "." << V/10%10 << V%10; ^ sfera.cpp:15:42: error: invalid operands of types 'double' and 'int' to binary 'operator%' cout << A/100 << "." << A/10%10 << A%10 << " " << V/100 << "." << V/10%10 << V%10; ^ sfera.cpp:15:76: error: invalid operands of types 'double' and 'int' to binary 'operator%' cout << A/100 << "." << A/10%10 << A%10 << " " << V/100 << "." << V/10%10 << V%10; ^ sfera.cpp:15:84: error: invalid operands of types 'double' and 'int' to binary 'operator%' cout << A/100 << "." << A/10%10 << A%10 << " " << V/100 << "." << V/10%10 << V%10; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sfera 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ă.