#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 | #64782921 | Utilizator | |
| Fișier | sfera.cpp | Dimensiune | 281 B |
| Data încărcării | 30 Mai 2026, 17:10 | Scor/rezultat | Eroare de compilare |
sfera.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^ sfera.cpp: In function ‘int main()’: sfera.cpp:9:4: error: ‘cin’ was not declared in this scope 9 | cin >> r; | ^~~ sfera.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | #include sfera.cpp:11:4: error: ‘cout’ was not declared in this scope 11 | cout << fixed << setprecision(2) << (long long)(16* atan(1) *r *r 100) / 100.0 << " " << fixed << setprecision(2) << (long long)((16 atan(1) *r *r *r) / 3 *100) / 100.0; | ^~~~ sfera.cpp:11:4: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? sfera.cpp:11:12: error: ‘fixed’ was not declared in this scope 11 | cout << fixed << setprecision(2) << (long long)(16* atan(1) *r *r 100) / 100.0 << " " << fixed << setprecision(2) << (long long)((16 atan(1) *r *r *r) / 3 *100) / 100.0; | ^~~~~ sfera.cpp:1:1: note: ‘std::fixed’ is defined in header ‘<ios>’; did you forget to ‘#include <ios>’? +++ |+#include <ios> 1 | #include sfera.cpp:11:21: error: ‘setprecision’ was not declared in this scope 11 | cout << fixed << setprecision(2) << (long long)(16* atan(1) *r *r 100) / 100.0 << " " << fixed << setprecision(2) << (long long)((16 atan(1) *r *r *r) / 3 *100) / 100.0; | ^~~~~~~~~~~~ sfera.cpp:1:1: note: ‘std::setprecision’ is defined in header ‘<iomanip>’; did you forget to ‘#include <iomanip>’? +++ |+#include <iomanip> 1 | #include sfera.cpp:11:56: error: ‘atan’ was not declared in this scope 11 | cout << fixed << setprecision(2) << (long long)(16* atan(1) *r *r 100) / 100.0 << " " << fixed << setprecision(2) << (long long)((16 atan(1) *r *r *r) / 3 *100) / 100.0; | ^~~~ sfera.cpp:11:69: error: expected ‘)’ before numeric constant 11 | cout << fixed << setprecision(2) << (long long)(16* atan(1) *r *r 100) / 100.0 << " " << fixed << setprecision(2) << (long long)((16 atan(1) *r *r *r) / 3 *100) / 100.0; | ~ ^~~~ | )
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ă.