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 | #58137671 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 711 B |
Data încărcării | 15 Mai 2025, 22:15 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:22:30: error: base operand of '->' has non-pointer type 'std::pair<const long long int, long long int>' for (auto abc : x) if(abc->second != 0) size++; ^ matrice_rara.cpp:24:30: error: base operand of '->' has non-pointer type 'std::pair<const long long int, long long int>' for (auto abc : x) if(abc->second != 0) fo << (abc->first) / 100000000 << ' ' << (abc->first) % 100000000 << ' ' << abc->second << '\n'; ^ matrice_rara.cpp:24:55: error: base operand of '->' has non-pointer type 'std::pair<const long long int, long long int>' for (auto abc : x) if(abc->second != 0) fo << (abc->first) / 100000000 << ' ' << (abc->first) % 100000000 << ' ' << abc->second << '\n'; ^ matrice_rara.cpp:24:90: error: base operand of '->' has non-pointer type 'std::pair<const long long int, long long int>' for (auto abc : x) if(abc->second != 0) fo << (abc->first) / 100000000 << ' ' << (abc->first) % 100000000 << ' ' << abc->second << '\n'; ^ matrice_rara.cpp:24:124: error: base operand of '->' has non-pointer type 'std::pair<const long long int, long long int>' for (auto abc : x) if(abc->second != 0) fo << (abc->first) / 100000000 << ' ' << (abc->first) % 100000000 << ' ' << abc->second << '\n'; ^
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ă.