#248
Pozitie
Se dă un şir cu n
numere naturale distincte două câte două. Să se determine poziţia pe care s-ar afla primul element al şirului în şirul sortat.
Problema | Pozitie | Operații I/O |
pozitie.in /pozitie.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54893307 | Utilizator | |
Fișier | pozitie.cpp | Dimensiune | 198 B |
Data încărcării | 11 Decembrie 2024, 15:10 | Scor / rezultat | Eroare de compilare |
pozitie.cpp:1:7: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:7: warning: multi-character character constant [-Wmultichar] pozitie.cpp:1:15: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:15: warning: character constant too long for its type [enabled by default] pozitie.cpp:1:31: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:31: warning: character constant too long for its type [enabled by default] pozitie.cpp:1:75: warning: character constant too long for its type [enabled by default] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:94: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:94: warning: character constant too long for its type [enabled by default] pozitie.cpp:1:107: warning: character constant too long for its type [enabled by default] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:133: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:133: warning: multi-character character constant [-Wmultichar] pozitie.cpp:1:141: warning: character constant too long for its type [enabled by default] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:154: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:154: warning: character constant too long for its type [enabled by default] pozitie.cpp:1:167: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:167: warning: character constant too long for its type [enabled by default] pozitie.cpp:1:1: error: 'hd' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:4: error: 'lhd' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:52: error: 'glkh' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:57: error: 'fldgkh' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:64: error: 'fgldhkgldhk' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:84: error: 'ldghkgldkh' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:126: error: 'fgkh' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:131: error: 'gh' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:150: error: 'glkh' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:164: error: 'glk' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^ pozitie.cpp:1:178: error: 'lgkhdghihpthiodhopitr' does not name a type hd;lhd'hk'dkhg'd;lhd;ghk;'dlhk'dghk;ldgfhk;gldkh'd;glkh;fldgkh;fgldhkgldhk';gldkh';ldghkgldkh';gldhk'gldkh'glhkdglhhkgkhgkh';fgkh;gh'dhg'dgh'd;glhd';glkh'd;glkh'd;glk'dlhfdkg'h;lgkhdghihpthiodhopitr ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Pozitie 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ă.