Se dau lungimile laturilor patrulaterului inscriptibil ABCD
. Aflati aria acestuia.
matematică
Problema | AriePatrulaterInscriptibil | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53834779 | Utilizator | |
Fișier | ariepatrulaterinscriptibil.cpp | Dimensiune | 370 B |
Data încărcării | 12 Noiembrie 2024, 19:45 | Scor / rezultat | Eroare de compilare |
ariepatrulaterinscriptibil.cpp: In function 'void transform(float)': ariepatrulaterinscriptibil.cpp:7:11: error: declaration of 'std::string x' shadows a parameter string x = to_string(x); ^ ariepatrulaterinscriptibil.cpp:7:26: error: no matching function for call to 'to_string(std::string&)' string x = to_string(x); ^ ariepatrulaterinscriptibil.cpp:7:26: note: candidates are: In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from ariepatrulaterinscriptibil.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2864:3: note: std::string std::to_string(int) to_string(int __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2864:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'int' /usr/include/c++/4.8/bits/basic_string.h:2869:3: note: std::string std::to_string(unsigned int) to_string(unsigned __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2869:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'unsigned int' /usr/include/c++/4.8/bits/basic_string.h:2875:3: note: std::string std::to_string(long int) to_string(long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2875:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'long int' /usr/include/c++/4.8/bits/basic_string.h:2880:3: note: std::string std::to_string(long unsigned int) to_string(unsigned long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2880:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'long unsigned int' /usr/include/c++/4.8/bits/basic_string.h:2886:3: note: std::string std::to_string(long long int) to_string(long long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2886:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'long long int' /usr/include/c++/4.8/bits/basic_string.h:2892:3: note: std::string std::to_string(long long unsigned int) to_string(unsigned long long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2892:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'long long unsigned int' /usr/include/c++/4.8/bits/basic_string.h:2898:3: note: std::string std::to_string(float) to_string(float __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2898:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'float' /usr/include/c++/4.8/bits/basic_string.h:2907:3: note: std::string std::to_string(double) to_string(double __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2907:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'double' /usr/include/c++/4.8/bits/basic_string.h:2916:3: note: std::string std::to_string(long double) to_string(long double __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2916:3: note: no known conversion for argument 1 from 'std::string {aka std::basic_string<char>}' to 'long double' ariepatrulaterinscriptibil.cpp:8:24: error: 's' was not declared in this scope for(int i = 0; i < s.length()-3;++i)cout << s[i]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AriePatrulaterInscriptibil 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ă.