#1464
Sir7
Să se determine cel de-al K
-lea termen al șirului S
, pornind de la cifra P
Problema | Sir7 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 8 MB
/
Stivă 8 MB
|
Id soluție | #51561419 | Utilizator | |
Fișier | sir7.cpp | Dimensiune | 610 B |
Data încărcării | 11 Iulie 2024, 16:21 | Scor / rezultat | Eroare de compilare |
sir7.cpp:3:7: error: expected nested-name-specifier before 'namesapce' using namesapce std; ^ sir7.cpp:3:7: error: 'namesapce' has not been declared sir7.cpp:3:17: error: expected ';' before 'std' using namesapce std; ^ sir7.cpp:3:17: error: 'std' does not name a type sir7.cpp: In function 'int get_number(int, int)': sir7.cpp:25:22: error: 'k' was not declared in this scope else if(i == k) ^ sir7.cpp: In function 'int main()': sir7.cpp:36:5: error: 'cin' was not declared in this scope cin >> P >> K; ^ sir7.cpp:36:5: note: suggested alternative: In file included from sir7.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ sir7.cpp:37:5: error: 'cout' was not declared in this scope cout << get number(P, K); ^ sir7.cpp:37:5: note: suggested alternative: In file included from sir7.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ sir7.cpp:37:13: error: 'get' was not declared in this scope cout << get number(P, K); ^ sir7.cpp:37:17: error: expected ';' before 'number' cout << get number(P, K); ^ sir7.cpp: In function 'int get_number(int, int)': sir7.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sir7 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ă.