#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 | #51903749 | Utilizator | |
Fișier | minime.cpp | Dimensiune | 217 B |
Data încărcării | 06 Septembrie 2024, 11:36 | Scor / rezultat | Eroare de compilare |
minime.cpp: In function 'int main()': minime.cpp:7:11: error: expected initializer before 'a' int n a,b,c; ^ minime.cpp:8:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ minime.cpp:12:14: error: 'c' was not declared in this scope if(x<c) a=b; b=c; c=x; ^ minime.cpp:12:17: error: 'a' was not declared in this scope if(x<c) a=b; b=c; c=x; ^ minime.cpp:12:19: error: 'b' was not declared in this scope if(x<c) a=b; b=c; c=x; ^ minime.cpp:12:22: error: 'b' was not declared in this scope if(x<c) a=b; b=c; c=x; ^ minime.cpp:12:24: error: 'c' was not declared in this scope if(x<c) a=b; b=c; c=x; ^ minime.cpp:14:11: error: 'a' was not declared in this scope cout<<a<<" "<<b<<" "<<c; ^ minime.cpp:14:19: error: 'b' was not declared in this scope cout<<a<<" "<<b<<" "<<c; ^ minime.cpp:14:27: error: 'c' was not declared in this scope cout<<a<<" "<<b<<" "<<c; ^
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ă.