#274
3minime
Se dau n
numere naturale. Determinaţi cele mai mici trei numere dintre cele date.
Variante Bacalaureat 2009
Problema | 3minime | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54283183 | Utilizator | |
Fișier | minime.cpp | Dimensiune | 504 B |
Data încărcării | 24 Noiembrie 2024, 18:32 | Scor / rezultat | Eroare de compilare |
minime.cpp: In function 'int main()': minime.cpp:8:5: error: expected initializer before 'cin' cin>>n; ^ minime.cpp:9:5: error: 'min1' was not declared in this scope min1=x; ^ minime.cpp:9:10: error: 'x' was not declared in this scope min1=x; ^ minime.cpp:10:5: error: 'min2' was not declared in this scope min2=x; ^ minime.cpp:11:5: error: 'min3' was not declared in this scope min3=x; ^ minime.cpp:12:9: error: 'i' was not declared in this scope for(i=2;i<=n;i++) ^ minime.cpp:12:16: error: 'n' was not declared in this scope for(i=2;i<=n;i++) ^ minime.cpp:19:21: error: 'minim2' was not declared in this scope else if(x < minim2){ ^ minime.cpp:20:13: error: 'minim3' was not declared in this scope minim3 = minim2; ^ minime.cpp:23:21: error: 'minim3' was not declared in this scope else if(x < minim3){ ^ minime.cpp:27:13: error: 'minim3' was not declared in this scope cout << minim3 << ' ' << minim2 << ' ' << minim1; ^ minime.cpp:27:30: error: 'minim2' was not declared in this scope cout << minim3 << ' ' << minim2 << ' ' << minim1; ^ minime.cpp:27:47: error: 'minim1' was not declared in this scope cout << minim3 << ' ' << minim2 << ' ' << minim1; ^ minime.cpp: At global scope: minime.cpp:29:5: error: expected unqualified-id before 'return' return 0; ^ minime.cpp:30:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema 3minime 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ă.