#3910
Aranjamente1
Se citesc trei numere naturale a b n
. Să se afișeze, în ordine lexicografică, șirurile cu n
elemente distincte din mulțimea {a, a + 1, ..., b}
.
Problema | Aranjamente1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49027521 | Utilizator | |
Fișier | aranjamente1.cpp | Dimensiune | 494 B |
Data încărcării | 13 Februarie 2024, 09:44 | Scor / rezultat | Eroare de compilare |
aranjamente1.cpp: In function 'void back(int)': aranjamente1.cpp:3:5: error: 'inti' was not declared in this scope inti; ^ aranjamente1.cpp:4:10: error: 't' was not declared in this scope if(k>t){ ^ aranjamente1.cpp:5:13: error: 'i' was not declared in this scope for(i=1;i<k,i++) ^ aranjamente1.cpp:5:24: error: expected ';' before ')' token for(i=1;i<k,i++) ^ aranjamente1.cpp:6:13: error: 'cout' was not declared in this scope cout<<v[i]<<" "; ^ aranjamente1.cpp:6:19: error: 'v' was not declared in this scope cout<<v[i]<<" "; ^ aranjamente1.cpp:7:9: error: 'cout' was not declared in this scope cout<<endl; ^ aranjamente1.cpp:7:15: error: 'endl' was not declared in this scope cout<<endl; ^ In file included from /usr/include/c++/4.8/iostream:38:0, from aranjamente1.cpp:8: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:184:1: error: 'namespace' definition is not allowed here namespace std ^ /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected '=' before '__attribute__' namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/memoryfwd.h:50:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected '=' before '__attribute__' namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected identifier before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected ';' before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected primary-expression before '__attribute__' /usr/include/c++/4.8/bits/stringfwd.h:42:15: error: expected ';' before '__attribute__' In file included from /usr/include/features.h:374:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426, from /usr/include/c++/4.8/iostream:38, from aranjamente1.cpp:8: /usr/include/wchar.h:132:1: error: expected unqualified-id before string constant __BEGIN_DECLS ^ In file included from /usr/include/c++/4.8/ios:39:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from aranjamente1.cpp:8: /usr/include/c++/4.8/exception:35:37: error: expected '}' before end of line #pragma GCC visibility push(default) ^ /usr/include/c++/4.8/exception:35:37: error: expected '}' before end of line /usr/include/c++/4.8/exception: At global scope: /usr/include/c++/4.8/exception:35:37: error: expected declaration before end of line
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Aranjamente1 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ă.