#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 | #15127958 | Utilizator | |
Fișier | minmax0.cpp | Dimensiune | 532 B |
Data încărcării | 02 Aprilie 2019, 08:33 | Scor / rezultat | Eroare de compilare |
minmax0.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ minmax0.cpp:2:1: error: stray '\302' in program using namespace std; ^ minmax0.cpp:2:1: error: stray '\240' in program minmax0.cpp:2:1: error: stray '\302' in program minmax0.cpp:2:1: error: stray '\240' in program minmax0.cpp:4:1: error: stray '\302' in program int main() ^ minmax0.cpp:4:1: error: stray '\240' in program minmax0.cpp:6:5: error: stray '\302' in program int n,minim,maxim=0,i; ^ minmax0.cpp:6:5: error: stray '\240' in program minmax0.cpp:6:5: error: stray '\302' in program minmax0.cpp:6:5: error: stray '\240' in program minmax0.cpp:6:5: error: stray '\302' in program minmax0.cpp:6:5: error: stray '\240' in program minmax0.cpp:6:5: error: stray '\302' in program minmax0.cpp:6:5: error: stray '\240' in program minmax0.cpp:6:5: error: stray '\302' in program minmax0.cpp:6:5: error: stray '\240' in program minmax0.cpp:7:5: error: stray '\302' in program cin>>n; ^ minmax0.cpp:7:5: error: stray '\240' in program minmax0.cpp:7:5: error: stray '\302' in program minmax0.cpp:7:5: error: stray '\240' in program minmax0.cpp:7:5: error: stray '\302' in program minmax0.cpp:7:5: error: stray '\240' in program minmax0.cpp:7:5: error: stray '\302' in program minmax0.cpp:7:5: error: stray '\240' in program minmax0.cpp:8:5: error: stray '\302' in program int v[n]; ^ minmax0.cpp:8:5: error: stray '\240' in program minmax0.cpp:8:5: error: stray '\302' in program minmax0.cpp:8:5: error: stray '\240' in program minmax0.cpp:8:5: error: stray '\302' in program minmax0.cpp:8:5: error: stray '\240' in program minmax0.cpp:8:5: error: stray '\302' in program minmax0.cpp:8:5: error: stray '\240' in program minmax0.cpp:8:5: error: stray '\302' in program minmax0.cpp:8:5: error: stray '\240' in program minmax0.cpp:9:5: error: stray '\302' in program minim=1000000; ^ minmax0.cpp:9:5: error: stray '\240' in program minmax0.cpp:9:5: error: stray '\302' in program minmax0.cpp:9:5: error: stray '\240' in program minmax0.cpp:9:5: error: stray '\302' in program minmax0.cpp:9:5: error: stray '\240' in program minmax0.cpp:9:5: error: stray '\302' in program minmax0.cpp:9:5: error: stray '\240' in program minmax0.cpp:10:5: error: stray '\302' in program for(i=0; i<n; i++) ^ minmax0.cpp:10:5: error: stray '\240' in program minmax0.cpp:10:5: error: stray '\302' in program minmax0.cpp:10:5: error: stray '\240' in program minmax0.cpp:10:5: error: stray '\302' in program minmax0.cpp:10:5: error: stray '\240' in program minmax0.cpp:10:5: error: stray '\302' in program minmax0.cpp:10:5: error: stray '\240' in program minmax0.cpp:11:9: error: stray '\302' in program ^ minmax0.cpp:11:9: error: stray '\240' in program minmax0.cpp:11:9: error: stray '\302' in program minmax0.cpp:11:9: error: stray '\240' in program minmax0.cpp:11:9: error: stray '\302' in program minmax0.cpp:11:9: error: stray '\240' in program minmax0.cpp:11:9: error: stray '\302' in program minmax0.cpp:11:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program cin>>v[i]; ^ minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:13:9: error: stray '\302' in program minmax0.cpp:13:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program if(maxim<v[i]) ^ minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:14:9: error: stray '\302' in program minmax0.cpp:14:9: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program maxim=v[i]; ^ minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:15:13: error: stray '\302' in program minmax0.cpp:15:13: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program if(minim>v[i]) ^ minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:16:9: error: stray '\302' in program minmax0.cpp:16:9: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minim=v[i]; ^ minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:17:13: error: stray '\302' in program minmax0.cpp:17:13: error: stray '\240' in program minmax0.cpp:18:9: error: stray '\302' in program ^ minmax0.cpp:18:9: error: stray '\240' in program minmax0.cpp:18:9: error: stray '\302' in program minmax0.cpp:18:9: error: stray '\240' in program minmax0.cpp:18:9: error: stray '\302' in program minmax0.cpp:18:9: error: stray '\240' in program minmax0.cpp:18:9: error: stray '\302' in program minmax0.cpp:18:9: error: stray '\240' in program minmax0.cpp:20:5: error: stray '\302' in program cout<<minim<<" "<<maxim; ^ minmax0.cpp:20:5: error: stray '\240' in program minmax0.cpp:20:5: error: stray '\302' in program minmax0.cpp:20:5: error: stray '\240' in program minmax0.cpp:20:5: error: stray '\302' in program minmax0.cpp:20:5: error: stray '\240' in program minmax0.cpp:20:5: error: stray '\302' in program minmax0.cpp:20:5: error: stray '\240' in program minmax0.cpp:21:5: error: stray '\302' in program return 0; ^ minmax0.cpp:21:5: error: stray '\240' in program minmax0.cpp:21:5: error: stray '\302' in program minmax0.cpp:21:5: error: stray '\240' in program minmax0.cpp: In function 'int main()': minmax0.cpp:7:13: error: 'cin' was not declared in this scope cin>>n; ^ minmax0.cpp:20:13: error: 'cout' was not declared in this scope cout<<minim<<" "<<maxim; ^
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ă.