#3801
LsiInterclasare
C++
Să se scrie o funcție care interclasează nodurile a două liste.
Folclorul informatic
Problema | LsiInterclasare | Operații I/O |
lsiinterclasare.in /lsiinterclasare.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
Id soluție | #35242035 | Utilizator | |
Fișier | lsiinterclasare.cpp | Dimensiune | 1.69 KB |
Data încărcării | 02 Martie 2022, 14:56 | Scor / rezultat | Eroare de compilare |
lsiinterclasare.cpp:54:9: error: #include expects "FILENAME" or <FILENAME> #include ^ lsiinterclasare.cpp:55:9: error: #include expects "FILENAME" or <FILENAME> #include ^ lsiinterclasare.cpp:57:8: error: redefinition of 'struct Nod' struct Nod ^ lsiinterclasare.cpp:4:8: error: previous definition of 'struct Nod' struct Nod ^ lsiinterclasare.cpp: In function 'Nod* create()': lsiinterclasare.cpp:64:16: error: no matching function for call to 'Nod::Nod()' Nod* tmp = new Nod; ^ lsiinterclasare.cpp:64:16: note: candidates are: lsiinterclasare.cpp:8:5: note: Nod::Nod(int, int) Nod(int _id, int x) ^ lsiinterclasare.cpp:8:5: note: candidate expects 2 arguments, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(const Nod&) struct Nod ^ lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(Nod&&) lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp: In function 'void insert_front(Nod**, int)': lsiinterclasare.cpp:70:21: error: no matching function for call to 'Nod::Nod()' Nod* new_node = new Nod; ^ lsiinterclasare.cpp:70:21: note: candidates are: lsiinterclasare.cpp:8:5: note: Nod::Nod(int, int) Nod(int _id, int x) ^ lsiinterclasare.cpp:8:5: note: candidate expects 2 arguments, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(const Nod&) struct Nod ^ lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(Nod&&) lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp: In function 'void insert_rear(Nod**, int)': lsiinterclasare.cpp:127:21: error: no matching function for call to 'Nod::Nod()' Nod* new_node = new Nod; ^ lsiinterclasare.cpp:127:21: note: candidates are: lsiinterclasare.cpp:8:5: note: Nod::Nod(int, int) Nod(int _id, int x) ^ lsiinterclasare.cpp:8:5: note: candidate expects 2 arguments, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(const Nod&) struct Nod ^ lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(Nod&&) lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp: In function 'int main()': lsiinterclasare.cpp:149:5: warning: unused variable 'n1' [-Wunused-variable] int n1, n2; ^ lsiinterclasare.cpp:149:9: warning: unused variable 'n2' [-Wunused-variable] int n1, n2; ^ lsiinterclasare.cpp: In function 'int main()': lsiinterclasare.cpp:177:5: error: redefinition of 'int main()' int main() ^ lsiinterclasare.cpp:146:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LsiInterclasare 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ă.