#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 | #51903734 | Utilizator | |
Fișier | minime.cpp | Dimensiune | 226 B |
Data încărcării | 06 Septembrie 2024, 11:34 | Scor / rezultat | Eroare de compilare |
minime.cpp: In function 'int main()': minime.cpp:7:11: error: expected initializer before 'm1' int n m1,m2,m3; ^ minime.cpp:8:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ minime.cpp:12:14: error: 'm3' was not declared in this scope if(x<m3) m1=m2; m2=m3; m3=x; ^ minime.cpp:12:18: error: 'm1' was not declared in this scope if(x<m3) m1=m2; m2=m3; m3=x; ^ minime.cpp:12:21: error: 'm2' was not declared in this scope if(x<m3) m1=m2; m2=m3; m3=x; ^ minime.cpp:12:25: error: 'm2' was not declared in this scope if(x<m3) m1=m2; m2=m3; m3=x; ^ minime.cpp:12:28: error: 'm3' was not declared in this scope if(x<m3) m1=m2; m2=m3; m3=x; ^ minime.cpp:14:11: error: 'm1' was not declared in this scope cout<<m1<<" "<<m2<<" "<<m3; ^ minime.cpp:14:20: error: 'm2' was not declared in this scope cout<<m1<<" "<<m2<<" "<<m3; ^ minime.cpp:14:29: error: 'm3' was not declared in this scope cout<<m1<<" "<<m2<<" "<<m3; ^ minime.cpp:14:31: error: expected '}' at end of input cout<<m1<<" "<<m2<<" "<<m3; ^
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ă.