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 | #49632327 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 1.34 KB |
Data încărcării | 10 Martie 2024, 16:50 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp:2:1: error: 'matrice_rara' does not name a type matrice_rara.out ^ matrice_rara.cpp: In function 'void citire(andra*, int)': matrice_rara.cpp:21:9: error: reference to 'cin' is ambiguous cin >> a[i].i >> a[i].j >> a[i].val; ^ matrice_rara.cpp:11: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:9: /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:25:5: error: reference to 'cout' is ambiguous cout << n << '\n'; ^ matrice_rara.cpp:12: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:9: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ matrice_rara.cpp:27:9: error: reference to 'cout' is ambiguous cout << a[i].i << " " << a[i].j << " " << a[i].val << '\n'; ^ matrice_rara.cpp:12: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:9: /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:31: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:36:5: error: reference to 'cin' is ambiguous cin >> n >> m >> n1 >> n2; ^ matrice_rara.cpp:11: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:9: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ matrice_rara.cpp:57:5: error: reference to 'cout' is ambiguous cout << nc << '\n'; ^ matrice_rara.cpp:12: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:9: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ matrice_rara.cpp:59:9: error: reference to 'cout' is ambiguous cout << c[i].i << " " << c[i].j << " " << c[i].val << '\n'; ^ matrice_rara.cpp:12: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:9: /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ă.