#1526
align
Andino este într-o mare dilemă: editorul lui de texte nu are funcţii de aliniere aşa că vă roagă să-l ajutaţi să alinieze un text, la stânga sau la dreapta.
Problema | align | Operații I/O |
align.in /align.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53472677 | Utilizator | |
Fișier | align.cpp | Dimensiune | 1.40 KB |
Data încărcării | 01 Noiembrie 2024, 17:08 | Scor / rezultat | Eroare de compilare |
align.cpp: In function 'int main()': align.cpp:11:5: error: reference to 'cin' is ambiguous cin >> n >> ch; ^ align.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("align.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ align.cpp:18:9: error: reference to 'cin' is ambiguous cin.getline(c , 10); ^ align.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("align.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ align.cpp:21:13: error: reference to 'cin' is ambiguous cin.getline(m[q] , 201); ^ align.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("align.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ align.cpp:32:17: error: reference to 'cout' is ambiguous cout << ' '; ^ align.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("align.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ align.cpp:36:17: error: reference to 'cout' is ambiguous cout << m[q][i]; ^ align.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("align.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ align.cpp:39:13: error: reference to 'cout' is ambiguous cout << endl; ^ align.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("align.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ align.cpp:47:13: error: reference to 'cin' is ambiguous cin.getline(s , 300); ^ align.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("align.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ align.cpp:58:21: error: reference to 'cout' is ambiguous cout << s[i]; ^ align.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("align.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ align.cpp:64:13: error: reference to 'cout' is ambiguous cout << endl; ^ align.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("align.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from align.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 align 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ă.