#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.
Problemă de interviu
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 | |
Fișier | flsireord.cpp | Dimensiune | 1.56 KB |
Data încărcării | 23 Iunie 2024, 14:25 | Scor / rezultat | Eroare de 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() { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
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:
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ă.