Detalii evaluare #51471202

Rezumat problemă

#4686 FLsiReord C++

O listă simplu înlănțuită are cheile nodurilor, în valoare absolută, ordonate crescător. Să se reordoneze nodurile astfel încât cheile să fie ordonate crescător.

Detalii

Problema FLsiReord Operații I/O flsireord.in/flsireord.out
Limita timp 0.1 secunde Limita memorie Total: 16 MB / Stivă 8 MB
Id soluție #51471202 Utilizator Andrei Visalon (Prekzursil)
Fișier flsireord.cpp Dimensiune 1.56 KB
Data încărcării 23 Iunie 2024, 14:25 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

flsireord.cpp: In function 'int main()':
flsireord.cpp:56:131: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                   ^
flsireord.cpp:56:131: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:132: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                    ^
flsireord.cpp:56:132: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:133: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                     ^
flsireord.cpp:56:133: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:134: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                      ^
flsireord.cpp:56:134: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:135: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                       ^
flsireord.cpp:56:135: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:136: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                        ^
flsireord.cpp:56:136: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:137: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                         ^
flsireord.cpp:56:137: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:138: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                          ^
flsireord.cpp:56:138: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:56:139: error: no matching function for call to 'nod::nod(<brace-enclosed initializer list>)'
     nod *head = new nod{1, new nod{-1, new nod{-3, new nod{4, new nod{7, new nod{-7, new nod{-9, new nod{10, new nod{-200, nullptr}}}}}}}}};

                                                                                                                                           ^
flsireord.cpp:56:139: note: candidates are:
flsireord.cpp:8:5: note: nod::nod(int)
     nod(int x)

     ^
flsireord.cpp:8:5: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(const nod&)
 struct nod

        ^
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp:4:8: note: constexpr nod::nod(nod&&)
flsireord.cpp:4:8: note:   candidate expects 1 argument, 2 provided
flsireord.cpp: In function 'int main()':
flsireord.cpp:71:5: error: redefinition of 'int main()'
 int main()

     ^
flsireord.cpp:54:5: error: 'int main()' previously defined here
 int main() {

     ^

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 FLsiReord face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. Soluția propusă de tine va fi evaluată astfel:

  • Soluția propusă de tine este inclusă în programul suport, apoi acesta este compilat. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Datorită existenței programului suport, la compilare pot să apară erori sau avertismente care să nu se refere la instrucțiunile scrise de tine, dar care sunt datorate faptului că soluția ta nu este corectă.
  • Dacă programul suport 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ă.