#4092
Se dă n un număr natural și n perechi de numere (a, b). Să se determine:
a și b au număr impar de divizori pozitivi.a și b.OJI 2022, Clasa a VI-a, problema de antrenament
| Problema | cate | Operații I/O |
cate.in/cate.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63364076 | Utilizator | |
| Fișier | cate.cpp | Dimensiune | 1.63 KB |
| Data încărcării | 27 Februarie 2026, 22:35 | Scor/rezultat | Eroare de compilare |
cate.cpp: In function 'int main()': cate.cpp:38:19: error: expected unqualified-id before '[' token for (auto [a, b] : intervals) { ^ cate.cpp:38:19: error: expected ';' before '[' token cate.cpp:38:20: error: 'a' was not declared in this scope for (auto [a, b] : intervals) { ^ cate.cpp:38:23: error: 'b' was not declared in this scope for (auto [a, b] : intervals) { ^ cate.cpp: In lambda function: cate.cpp:38:26: error: expected '{' before ':' token for (auto [a, b] : intervals) { ^ cate.cpp: In function 'int main()': cate.cpp:38:26: error: expected ';' before ':' token cate.cpp:38:26: error: expected primary-expression before ':' token cate.cpp:38:26: error: expected ')' before ':' token cate.cpp:38:26: error: expected primary-expression before ':' token cate.cpp:38:26: error: expected ';' before ':' token cate.cpp:49:19: error: expected unqualified-id before '[' token for (auto [a, b] : intervals) ^ cate.cpp:49:19: error: expected ';' before '[' token cate.cpp:49:20: error: 'a' was not declared in this scope for (auto [a, b] : intervals) ^ cate.cpp:49:23: error: 'b' was not declared in this scope for (auto [a, b] : intervals) ^ cate.cpp: In lambda function: cate.cpp:49:26: error: expected '{' before ':' token for (auto [a, b] : intervals) ^ cate.cpp: In function 'int main()': cate.cpp:49:26: error: expected ';' before ':' token cate.cpp:49:26: error: expected primary-expression before ':' token cate.cpp:49:26: error: expected ')' before ':' token cate.cpp:49:26: error: expected primary-expression before ':' token cate.cpp:49:26: error: expected ';' before ':' token cate.cpp:55:19: error: expected unqualified-id before '[' token for (auto [a, b] : intervals) { ^ cate.cpp:55:19: error: expected ';' before '[' token cate.cpp:55:20: error: 'a' was not declared in this scope for (auto [a, b] : intervals) { ^ cate.cpp:55:23: error: 'b' was not declared in this scope for (auto [a, b] : intervals) { ^ cate.cpp: In lambda function: cate.cpp:55:26: error: expected '{' before ':' token for (auto [a, b] : intervals) { ^ cate.cpp: In function 'int main()': cate.cpp:55:26: error: expected ';' before ':' token cate.cpp:55:26: error: expected primary-expression before ':' token cate.cpp:55:26: error: expected ')' before ':' token cate.cpp:55:26: error: expected primary-expression before ':' token cate.cpp:55:26: error: expected ';' before ':' token cate.cpp:67:1: error: expected '}' at end of input } ^ cate.cpp:67:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cate 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ă.