#3794
InterclasNoMemory1
Se dau două șiruri de numere naturale, cu n
, respectiv m
elemente, ordonate crescător. Să se determine al treilea șir, care să conţină, în ordine crescătoare, elementele din primele două şiruri.
Problema | InterclasNoMemory1 | Operații I/O |
file.in /file.out
|
---|---|---|---|
Limita timp | 0.25 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #50361712 | Utilizator | |
Fișier | interclasnomemory1.cpp | Dimensiune | 1.30 KB |
Data încărcării | 06 Aprilie 2024, 10:56 | Scor / rezultat | 0 puncte |
interclasnomemory1.cpp: In function 'int main()': interclasnomemory1.cpp:26:26: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default] tmpa=fin.tellg()-1; ^ In file included from /usr/include/c++/4.8/iosfwd:40:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from interclasnomemory1.cpp:1: /usr/include/c++/4.8/bits/postypes.h:192:7: note: candidate 1: std::fpos<_StateT> std::fpos<_StateT>::operator-(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] operator-(streamoff __off) const ^ interclasnomemory1.cpp:26:26: note: candidate 2: operator-(std::streamoff {aka long long int}, int) <built-in> tmpa=fin.tellg()-1; ^ interclasnomemory1.cpp:30:26: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default] tmpb=fin.tellg()-1; ^ In file included from /usr/include/c++/4.8/iosfwd:40:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from interclasnomemory1.cpp:1: /usr/include/c++/4.8/bits/postypes.h:192:7: note: candidate 1: std::fpos<_StateT> std::fpos<_StateT>::operator-(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] operator-(streamoff __off) const ^ interclasnomemory1.cpp:30:26: note: candidate 2: operator-(std::streamoff {aka long long int}, int) <built-in> tmpb=fin.tellg()-1; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0.052 secunde | Raspuns gresit. | 20 | 0 | ||
5 | Depășit | Limita de timp depășită | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterclasNoMemory1 face parte din prima categorie. 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ă.