#3237
Se dau m şi n numere naturale nenule. Să se determine două numere naturale a şi b astfel încât c.m.m.d.c.(a+i,b+j)>1 pentru orice i=0,m-1 şi orice j=0,n-1.
NeuroN
| Problema | GCDnot1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #59216454 | Utilizator | |
| Fișier | gcdnot1.cpp | Dimensiune | 4.42 KB |
| Data încărcării | 22 Septembrie 2025, 11:42 | Scor/rezultat | Eroare de compilare |
gcdnot1.cpp: In function 'int main()': gcdnot1.cpp:123:22: error: expected unqualified-id before '[' token for (auto const& [mod, rem] : congruences_a) { ^ gcdnot1.cpp:123:22: error: expected ';' before '[' token gcdnot1.cpp:123:23: error: 'mod' was not declared in this scope for (auto const& [mod, rem] : congruences_a) { ^ gcdnot1.cpp:123:28: error: 'rem' was not declared in this scope for (auto const& [mod, rem] : congruences_a) { ^ gcdnot1.cpp: In lambda function: gcdnot1.cpp:123:33: error: expected '{' before ':' token for (auto const& [mod, rem] : congruences_a) { ^ gcdnot1.cpp: In function 'int main()': gcdnot1.cpp:123:33: error: expected ';' before ':' token gcdnot1.cpp:123:33: error: expected primary-expression before ':' token gcdnot1.cpp:123:33: error: expected ')' before ':' token gcdnot1.cpp:123:33: error: expected primary-expression before ':' token gcdnot1.cpp:123:33: error: expected ';' before ':' token gcdnot1.cpp:143:22: error: expected unqualified-id before '[' token for (auto const& [mod, rem] : congruences_b) { ^ gcdnot1.cpp:143:22: error: expected ';' before '[' token gcdnot1.cpp:143:23: error: 'mod' was not declared in this scope for (auto const& [mod, rem] : congruences_b) { ^ gcdnot1.cpp:143:28: error: 'rem' was not declared in this scope for (auto const& [mod, rem] : congruences_b) { ^ gcdnot1.cpp: In lambda function: gcdnot1.cpp:143:33: error: expected '{' before ':' token for (auto const& [mod, rem] : congruences_b) { ^ gcdnot1.cpp: In function 'int main()': gcdnot1.cpp:143:33: error: expected ';' before ':' token gcdnot1.cpp:143:33: error: expected primary-expression before ':' token gcdnot1.cpp:143:33: error: expected ')' before ':' token gcdnot1.cpp:143:33: error: expected primary-expression before ':' token gcdnot1.cpp:143:33: error: expected ';' before ':' token
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GCDnot1 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ă.