#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 | #63364059 | Utilizator | |
| Fișier | cate.cpp | Dimensiune | 1.36 KB |
| Data încărcării | 27 Februarie 2026, 22:33 | Scor/rezultat | Eroare de compilare |
cate.cpp: In function 'int main()': cate.cpp:36:19: error: expected unqualified-id before '[' token for (auto [a,b] : intervals) { ^ cate.cpp:36:19: error: expected ';' before '[' token cate.cpp:36:20: error: 'a' was not declared in this scope for (auto [a,b] : intervals) { ^ cate.cpp:36:22: error: 'b' was not declared in this scope for (auto [a,b] : intervals) { ^ cate.cpp: In lambda function: cate.cpp:36:25: error: expected '{' before ':' token for (auto [a,b] : intervals) { ^ cate.cpp: In function 'int main()': cate.cpp:36:25: error: expected ';' before ':' token cate.cpp:36:25: error: expected primary-expression before ':' token cate.cpp:36:25: error: expected ')' before ':' token cate.cpp:36:25: error: expected primary-expression before ':' token cate.cpp:36:25: error: expected ';' before ':' token cate.cpp:44:19: error: expected unqualified-id before '[' token for (auto [a,b] : intervals) { ^ cate.cpp:44:19: error: expected ';' before '[' token cate.cpp:44:20: error: 'a' was not declared in this scope for (auto [a,b] : intervals) { ^ cate.cpp:44:22: error: 'b' was not declared in this scope for (auto [a,b] : intervals) { ^ cate.cpp: In lambda function: cate.cpp:44:25: error: expected '{' before ':' token for (auto [a,b] : intervals) { ^ cate.cpp: In function 'int main()': cate.cpp:44:25: error: expected ';' before ':' token cate.cpp:44:25: error: expected primary-expression before ':' token cate.cpp:44:25: error: expected ')' before ':' token cate.cpp:44:25: error: expected primary-expression before ':' token cate.cpp:44:25: error: expected ';' before ':' token cate.cpp:56:1: error: expected '}' at end of input } ^ cate.cpp:56: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ă.