#1413
ConstructPalindrom
C++
Find dat un string S
, se poate obține un palindrom din șirul inițial ștergând doar un singur caracter ?
Concursul Interjudețean de Informatică „Memorial Ștefan Dârțu”, ediția a XI-a, 12 decembrie 2015, Vatra Dornei
Problema | ConstructPalindrom | Operații I/O |
constructpalindrom.in /constructpalindrom.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53437915 | Utilizator | |
Fișier | constructpalindrom.cpp | Dimensiune | 828 B |
Data încărcării | 30 Octombrie 2024, 16:02 | Scor / rezultat | Eroare de compilare |
constructpalindrom.cpp: In function 'int main()': constructpalindrom.cpp:13:5: error: reference to 'cin' is ambiguous cin >> t; ^ constructpalindrom.cpp:7:10: note: candidates are: std::ifstream cin ifstream cin("constructpalindrom.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from constructpalindrom.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ constructpalindrom.cpp:16:9: error: reference to 'cin' is ambiguous cin >> s; ^ constructpalindrom.cpp:7:10: note: candidates are: std::ifstream cin ifstream cin("constructpalindrom.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from constructpalindrom.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ constructpalindrom.cpp:34:13: error: reference to 'cout' is ambiguous cout << "YES" << endl; ^ constructpalindrom.cpp:8:10: note: candidates are: std::ofstream cout ofstream cout("constructpalindrom.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from constructpalindrom.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ constructpalindrom.cpp:36:13: error: reference to 'cout' is ambiguous cout << "NO" << endl; ^ constructpalindrom.cpp:8:10: note: candidates are: std::ofstream cout ofstream cout("constructpalindrom.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from constructpalindrom.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ConstructPalindrom 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ă.