#3161
permutari5
Se citește o multime cu n
numere naturale. Afișați toate permutările mulțimii citite în care elementul minim nu își schimbă poziția.
Problema | permutari5 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52972410 | Utilizator | |
Fișier | permutari5.cpp | Dimensiune | 853 B |
Data încărcării | 14 Octombrie 2024, 16:49 | Scor / rezultat | Eroare de compilare |
permutari5.cpp:58:1: error: stray '\302' in program return 0; ^ permutari5.cpp:58:1: error: stray '\240' in program permutari5.cpp:58:1: error: stray '\302' in program permutari5.cpp:58:1: error: stray '\240' in program permutari5.cpp:58:1: error: stray '\302' in program permutari5.cpp:58:1: error: stray '\240' in program permutari5.cpp:58:1: error: stray '\302' in program permutari5.cpp:58:1: error: stray '\240' in program permutari5.cpp:58:1: error: stray '\302' in program permutari5.cpp:58:1: error: stray '\240' in program permutari5.cpp:18:17: error: 'i' was not declared in this scope int minim(int a[i]) ^ permutari5.cpp: In function 'int minim(...)': permutari5.cpp:21:14: error: reference to 'min' is ambiguous {if(a[i]>min) ^ permutari5.cpp:4:31: note: candidates are: int min int n, a[11], sol[10],viz[11],min=0; ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from permutari5.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ permutari5.cpp:22:11: error: reference to 'min' is ambiguous min=a[i]; ^ permutari5.cpp:4:31: note: candidates are: int min int n, a[11], sol[10],viz[11],min=0; ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from permutari5.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ permutari5.cpp:24:12: error: reference to 'min' is ambiguous return min; ^ permutari5.cpp:4:31: note: candidates are: int min int n, a[11], sol[10],viz[11],min=0; ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from permutari5.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ permutari5.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema permutari5 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ă.