Detalii evaluare #44754207

Rezumat problemă

Să se scrie un program care citeşte din fişier două numere întregi şi determină suma lor.

Detalii

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 Ilie Alexia (IlieAlexia_Andreea)
Fișier sum.cpp Dimensiune 2.80 KB
Data încărcării 21 Septembrie 2023, 09:26 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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 &quot;social&quot;.</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 &quot;social&quot;.</font> <b> Source: </b> <a href= "https://bigcatswildcats.com"> <font color="LightSalmon"> https://bigcatswildcats.com </font></a></p>

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema sum face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.