#1
sum
Să se scrie un program care citeşte din fişier două numere întregi şi determină suma lor.
Problema | sum | Operații I/O |
sum.in /sum.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #44754207 | Utilizator | |
Fișier | sum.cpp | Dimensiune | 2.80 KB |
Data încărcării | 21 Septembrie 2023, 09:26 | Scor / rezultat | Eroare de compilare |
sum.cpp:9:1: error: stray '\342' in program <p> <font color="black" face= Arial> Tigers are known for their black stripes. Their fur varies in color from white to golden. A white tiger is not an albino. Their white appearance is the result of a genetic variation – a recessive gene. White tigers are either pure or part Bengal tiger, and usually bred in zoos. It is rare to see a white tiger in the wild. They do not live as long as golden-colored tigers and many have crossed eyes. </p> ^ sum.cpp:9:1: error: stray '\200' in program sum.cpp:9:1: error: stray '\223' in program sum.cpp:1:1: error: expected unqualified-id before '<' token <html> ^ sum.cpp:23:543: error: 'social' does not name a type <p> <font color="black" face= Arial> Tigers could once be found throughout Asia. During the past 100 years, their numbers have plummeted from approximately 100,000 to less than 4,000. Within the past 15 to 20 years, their range has also decreased by over 40%. Many tigers live in the forest, but you can also find them in grasslands and places where there are hills and rocks. They are also excellent swimmers and like being near water. Tigers generally lead solitary lives in established territories, although they are also considered "social".</font> <b> Source: </b> <a href= "https://bigcatswildcats.com"> <font color="LightSalmon"> https://bigcatswildcats.com </font></a></p> ^ sum.cpp:23:555: error: expected unqualified-id before '.' token <p> <font color="black" face= Arial> Tigers could once be found throughout Asia. During the past 100 years, their numbers have plummeted from approximately 100,000 to less than 4,000. Within the past 15 to 20 years, their range has also decreased by over 40%. Many tigers live in the forest, but you can also find them in grasslands and places where there are hills and rocks. They are also excellent swimmers and like being near water. Tigers generally lead solitary lives in established territories, although they are also considered "social".</font> <b> Source: </b> <a href= "https://bigcatswildcats.com"> <font color="LightSalmon"> https://bigcatswildcats.com </font></a></p> ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sum 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ă.