Detalii evaluare #58060932

Rezumat problemă

Se dă un număr natural n. Calculați suma dintre cei mai mici doi divizori proprii ai lui n.

Detalii

Problema Divizori7 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #58060932 Utilizator Goran Amalia (Amalia_24)
Fișier divizori7.cpp Dimensiune 5.63 KB
Data încărcării 12 Mai 2025, 10:23 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

divizori7.cpp:1:1: error: stray '\342' in program
 An artist’s conception illustrates the aftermath of a "kilonova," a powerful event that happens when two neutron stars merge.

 ^
divizori7.cpp:1:1: error: stray '\200' in program
divizori7.cpp:1:1: error: stray '\231' in program
divizori7.cpp:2:1: error: stray '\342' in program
 An artist’s conception illustrates the aftermath of a “kilonova,” a powerful event that happens when two neutron stars merge. As described in our press release, NASA’s Chandra X-ray Observatory has been collecting data on the kilonova associated with GW170817 since shortly after it was first detected in gravitational waves by the Laser Interferometry Gravitational-wave Observatory (LIGO) and Virgo on August 17, 2017.

 ^
divizori7.cpp:2:1: error: stray '\200' in program
divizori7.cpp:2:1: error: stray '\231' in program
divizori7.cpp:2:1: error: stray '\342' in program
divizori7.cpp:2:1: error: stray '\200' in program
divizori7.cpp:2:1: error: stray '\234' in program
divizori7.cpp:2:1: error: stray '\342' in program
divizori7.cpp:2:1: error: stray '\200' in program
divizori7.cpp:2:1: error: stray '\235' in program
divizori7.cpp:2:1: error: stray '\342' in program
divizori7.cpp:2:1: error: stray '\200' in program
divizori7.cpp:2:1: error: stray '\231' in program
divizori7.cpp:4:1: error: stray '\342' in program
 GW170817 was the first — and thus far the only — cosmic event where both gravitational waves and electromagnetic radiation, or light, were detected. This combination provides scientists with critical information about the physics of neutron star mergers and related phenomena, using observations at many different parts of the electromagnetic spectrum. Chandra is the only observatory still able to detect light from this extraordinary cosmic collision more than four years after the original event.

 ^
divizori7.cpp:4:1: error: stray '\200' in program
divizori7.cpp:4:1: error: stray '\224' in program
divizori7.cpp:4:1: error: stray '\342' in program
divizori7.cpp:4:1: error: stray '\200' in program
divizori7.cpp:4:1: error: stray '\224' in program
divizori7.cpp:10:1: error: stray '\342' in program
 A research team studying the Chandra data think this steadying of the X-ray emission comes from a shock — like a sonic boom from an airplane — as the merger debris responsible for the kilonova strikes gas around GW170817. Material heated by such a shock would glow steadily in X-rays giving a “kilonova afterglow”, like Chandra has observed. The artist’s illustration shows the merger debris responsible for the kilonova in blue surrounded by a shock depicted in orange and red.

 ^
divizori7.cpp:10:1: error: stray '\200' in program
divizori7.cpp:10:1: error: stray '\224' in program
divizori7.cpp:10:1: error: stray '\342' in program
divizori7.cpp:10:1: error: stray '\200' in program
divizori7.cpp:10:1: error: stray '\224' in program
divizori7.cpp:10:1: error: stray '\342' in program
divizori7.cpp:10:1: error: stray '\200' in program
divizori7.cpp:10:1: error: stray '\234' in program
divizori7.cpp:10:1: error: stray '\342' in program
divizori7.cpp:10:1: error: stray '\200' in program
divizori7.cpp:10:1: error: stray '\235' in program
divizori7.cpp:10:1: error: stray '\342' in program
divizori7.cpp:10:1: error: stray '\200' in program
divizori7.cpp:10:1: error: stray '\231' in program
divizori7.cpp:12:1: error: stray '\342' in program
 There is also an alternative explanation suggesting that the X-rays come from material falling towards a black hole that formed after the neutron stars merged. This material is depicted by a small disk in the center of the illustration. To avoid a coincidence, it is likely that only one of the two options — the kilonova afterglow or matter falling onto a black hole — is a significant source of the detected X-rays.

 ^
divizori7.cpp:12:1: error: stray '\200' in program
divizori7.cpp:12:1: error: stray '\224' in program
divizori7.cpp:12:1: error: stray '\342' in program
divizori7.cpp:12:1: error: stray '\200' in program
divizori7.cpp:12:1: error: stray '\224' in program
divizori7.cpp:22:1: error: stray '\342' in program
 NASA’s Marshall Space Flight Center manages the Chandra program. The Smithsonian Astrophysical Observatory’s Chandra X-ray Center controls science operations from Cambridge, Massachusetts, and flight operations from Burlington, Massachusetts.

 ^
divizori7.cpp:22:1: error: stray '\200' in program
divizori7.cpp:22:1: error: stray '\231' in program
divizori7.cpp:22:1: error: stray '\342' in program
divizori7.cpp:22:1: error: stray '\200' in program
divizori7.cpp:22:1: error: stray '\231' in program
divizori7.cpp:26:1: error: stray '\342' in program
 Read more from NASA’s Chandra X-ray Observatory.

 ^
divizori7.cpp:26:1: error: stray '\200' in program
divizori7.cpp:26:1: error: stray '\231' in program
divizori7.cpp:1:1: error: 'An' does not name a type
 An artist’s conception illustrates the aftermath of a "kilonova," a powerful event that happens when two neutron stars merge.

 ^
divizori7.cpp:24:80: error: found ':' in nested-name-specifier, expected '::'
 Image credit: X-ray: NASA/CXC/Northwestern Univ./A. Hajela et al.; Illustration: NASA/CXC/M.Weiss

                                                                                ^
divizori7.cpp:24:68: error: 'Illustration' does not name a type
 Image credit: X-ray: NASA/CXC/Northwestern Univ./A. Hajela et al.; Illustration: NASA/CXC/M.Weiss

                                                                    ^

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