#3363
Fie o matrice (care are M linii si N coloane) colorată folosind C culori. Aceasta este K-frumoasă doar dacă are exact K coloane omogene. O coloană omogenă este o coloană care are toate elementele colorate la fel.
| Problema | fmat | Operații I/O |
fmat.in/fmat.out
|
|---|---|---|---|
| Limita timp | 3 secunde | Limita memorie |
Total: 256 MB
/
Stivă 8 MB
|
| Id soluție | #60808782 | Utilizator | |
| Fișier | fmat.cpp | Dimensiune | 2.00 KB |
| Data încărcării | 12 Noiembrie 2025, 09:20 | Scor/rezultat | Eroare de compilare |
fmat.cpp: In function 'int main()': fmat.cpp:70:18: error: converting to 'std::tuple<int, int, int, int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int, int}]' tests[i] = {m, n, c, k}; ^ fmat.cpp:77:16: error: expected unqualified-id before '[' token for (auto &[m, n, c, k] : tests) ^ fmat.cpp:77:16: error: expected ';' before '[' token fmat.cpp:77:17: error: 'm' was not declared in this scope for (auto &[m, n, c, k] : tests) ^ fmat.cpp:77:20: error: 'n' was not declared in this scope for (auto &[m, n, c, k] : tests) ^ fmat.cpp:77:23: error: 'c' was not declared in this scope for (auto &[m, n, c, k] : tests) ^ fmat.cpp:77:26: error: 'k' was not declared in this scope for (auto &[m, n, c, k] : tests) ^ fmat.cpp: In lambda function: fmat.cpp:77:29: error: expected '{' before ':' token for (auto &[m, n, c, k] : tests) ^ fmat.cpp: In function 'int main()': fmat.cpp:77:29: error: expected ';' before ':' token fmat.cpp:77:29: error: expected primary-expression before ':' token fmat.cpp:77:29: error: expected ')' before ':' token fmat.cpp:77:29: error: expected primary-expression before ':' token fmat.cpp:77:29: error: expected ';' before ':' token
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema fmat 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ă.