#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 | #39029287 | Utilizator | |
Fișier | align.cpp | Dimensiune | 1.39 KB |
Data încărcării | 26 Octombrie 2022, 12:17 | Scor / rezultat | Eroare de compilare |
align.cpp: In function 'int main()': align.cpp:9:5: error: reference to 'cin' is ambiguous cin >> n >> ch; ^ align.cpp:3: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:16:9: error: reference to 'cin' is ambiguous cin.getline(c , 10); ^ align.cpp:3: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:19:13: error: reference to 'cin' is ambiguous cin.getline(m[q] , 201); ^ align.cpp:3: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:30:17: error: reference to 'cout' is ambiguous cout << ' '; ^ align.cpp:4: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:34:17: error: reference to 'cout' is ambiguous cout << m[q][i]; ^ align.cpp:4: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:37:13: error: reference to 'cout' is ambiguous cout << endl; ^ align.cpp:4: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:45:13: error: reference to 'cin' is ambiguous cin.getline(s , 300); ^ align.cpp:3: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:55:21: error: reference to 'cout' is ambiguous cout << s[i]; ^ align.cpp:4: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:61:13: error: reference to 'cout' is ambiguous cout << endl; ^ align.cpp:4: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ă.