#2600
expatr
Scrieți un program care citește de la tastatură un număr natural a
și care afișează partea întreagă a valorii expresiei \( {{3 \cdot \left(a^2+a^4 \right)} \over {a^2+a^4 + \sqrt {a^2+a^4} }} + \sqrt {a^2+a^4} \).
Problema | expatr | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53908799 | Utilizator | |
Fișier | expatr.cpp | Dimensiune | 167 B |
Data încărcării | 14 Noiembrie 2024, 14:29 | Scor / rezultat | Eroare de compilare |
expatr.cpp:8:5: error: stray '\342' in program cout<<3⋅(a2+a4)a2+a4+a2+a4√+a2+a4−−−−−−√; ^ expatr.cpp:8:5: error: stray '\213' in program expatr.cpp:8:5: error: stray '\205' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\232' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\222' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\222' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\222' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\222' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\222' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\222' in program expatr.cpp:8:5: error: stray '\342' in program expatr.cpp:8:5: error: stray '\210' in program expatr.cpp:8:5: error: stray '\232' in program expatr.cpp: In function 'int main()': expatr.cpp:8:16: error: 'a2' was not declared in this scope cout<<3⋅(a2+a4)a2+a4+a2+a4√+a2+a4−−−−−−√; ^ expatr.cpp:8:19: error: 'a4' was not declared in this scope cout<<3⋅(a2+a4)a2+a4+a2+a4√+a2+a4−−−−−−√; ^ expatr.cpp:8:21: error: expression cannot be used as a function cout<<3⋅(a2+a4)a2+a4+a2+a4√+a2+a4−−−−−−√; ^ expatr.cpp:8:22: error: expected ';' before 'a2' cout<<3⋅(a2+a4)a2+a4+a2+a4√+a2+a4−−−−−−√; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema expatr 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ă.