#4086
cmmdc5
Se dă un șir a
1
, a
2
, …, a
n
de numere naturale nenule. Să se determine răspunsul pentru una din următoarele cerințe:
n
numere.n-1
elemente din șir.n-2
elemente din șir.OJI 2022, Clasa a VI-a
Problema | cmmdc5 | Operații I/O |
cmmdc.in /cmmdc.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 128 MB
/
Stivă 64 MB
|
Id soluție | #37059855 | Utilizator | |
Fișier | cmmdc5.cpp | Dimensiune | 4.26 KB |
Data încărcării | 22 Iunie 2022, 19:23 | Scor / rezultat | Eroare de compilare |
cmmdc5.cpp:1:22: error: stray '#' in program Demetriad David says:#include <bits/stdc++.h> ^ cmmdc5.cpp:13:18: warning: missing terminating " character [enabled by default] ifstream cin(" ^ cmmdc5.cpp:13:5: error: missing terminating " character ifstream cin(" ^ cmmdc5.cpp:15:1: warning: missing terminating " character [enabled by default] "); ^ cmmdc5.cpp:15:1: error: missing terminating " character cmmdc5.cpp:1:1: error: 'Demetriad' does not name a type Demetriad David says:#include <bits/stdc++.h> ^ cmmdc5.cpp: In function 'int main()': cmmdc5.cpp:13:5: error: 'ifstream' was not declared in this scope ifstream cin(" ^ cmmdc5.cpp:13:14: error: expected ';' before 'cin' ifstream cin(" ^ cmmdc5.cpp:17:2: error: 'cin' was not declared in this scope cin >> q >> n; ^ cmmdc5.cpp:37:9: error: 'cout' was not declared in this scope cout << cmmdc; ^ cmmdc5.cpp:72:52: error: 'max' was not declared in this scope gcd_max = max(gcd_max, gcd_right[2]); ^ cmmdc5.cpp:74:55: error: 'max' was not declared in this scope gcd_max = max(gcd_max, gcd_left[n - 1]); ^ cmmdc5.cpp:85:41: error: 'max' was not declared in this scope gcd_max = max(gcd_max, a); ^ cmmdc5.cpp:88:9: error: 'cout' was not declared in this scope cout << gcd_max; ^ cmmdc5.cpp:150:50: error: 'max' was not declared in this scope gcd_max = max(gcd_max, _cmmdc); ^ cmmdc5.cpp:166:9: error: 'cout' was not declared in this scope cout << gcd_max; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cmmdc5 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ă.