#486
MinMax0
Să se determine maximul şi minimul valorilor elementelor unui vector.
Problema | MinMax0 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16145574 | Utilizator | |
Fișier | minmax0.cpp | Dimensiune | 362 B |
Data încărcării | 06 Iunie 2019, 22:10 | Scor / rezultat | Eroare de compilare |
minmax0.cpp:3:1: error: stray '\302' in program int main(){ long n, v[1001], maxim, minim; cin>>n; for (int i=0; i<n; i++) cin>>v[i]; maxim = v[0]; minim = v[0]; for (int i=1; i<n; i++) { if (v[i]>maxim) maxim = v[i]; if (v[i]<minim) minim = v[i]; } cout<<minim<<" "<<maxim; ^ minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:3:1: error: stray '\302' in program minmax0.cpp:3:1: error: stray '\240' in program minmax0.cpp:4:1: error: stray '\302' in program return 0;} ^ minmax0.cpp:4:1: error: stray '\240' in program minmax0.cpp:4:1: error: stray '\302' in program minmax0.cpp:4:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MinMax0 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ă.