Problema | Matrice_Rara | Operații I/O |
matrice_rara.in /matrice_rara.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55057651 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 1.28 KB |
Data încărcării | 19 Decembrie 2024, 09:38 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp: In function 'void citire(andra*, int)': matrice_rara.cpp:16:9: error: reference to 'cin' is ambiguous cin >> a[i].i >> a[i].j >> a[i].val; ^ matrice_rara.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("matrice_rara.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from matrice_rara.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ matrice_rara.cpp: In function 'void afisare(andra*, int)': matrice_rara.cpp:21:5: error: reference to 'cout' is ambiguous cout << n << '\n'; ^ matrice_rara.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("matrice_rara.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from matrice_rara.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ matrice_rara.cpp:23:9: error: reference to 'cout' is ambiguous cout << a[i].i << " " << a[i].j << " " << a[i].val << '\n'; ^ matrice_rara.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("matrice_rara.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from matrice_rara.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ matrice_rara.cpp: In function 'int maimic(andra, andra)': matrice_rara.cpp:28:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.i < b.i || a.i == b.i && a.j < b.j; ^ matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:35:5: error: reference to 'cin' is ambiguous cin >> n >> m >> n1 >> n2; ^ matrice_rara.cpp:4:10: note: candidates are: std::ifstream cin ifstream cin("matrice_rara.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from matrice_rara.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ matrice_rara.cpp:56:5: error: reference to 'cout' is ambiguous cout << nc << '\n'; ^ matrice_rara.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("matrice_rara.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from matrice_rara.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ matrice_rara.cpp:58:9: error: reference to 'cout' is ambiguous cout << c[i].i << " " << c[i].j << " " << c[i].val << '\n'; ^ matrice_rara.cpp:5:10: note: candidates are: std::ofstream cout ofstream cout("matrice_rara.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from matrice_rara.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 Matrice_Rara 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ă.