#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 | #15127919 | Utilizator | |
Fișier | minmax0.cpp | Dimensiune | 424 B |
Data încărcării | 02 Aprilie 2019, 08:32 | 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:1: error: stray '\302' in program int n,minim,maxim=0,i; ^ minmax0.cpp:6:1: error: stray '\240' in program minmax0.cpp:6:1: error: stray '\302' in program minmax0.cpp:6:1: error: stray '\240' in program minmax0.cpp:6:1: error: stray '\302' in program minmax0.cpp:6:1: error: stray '\240' in program minmax0.cpp:6:1: error: stray '\302' in program minmax0.cpp:6:1: error: stray '\240' in program minmax0.cpp:6:1: error: stray '\302' in program minmax0.cpp:6:1: error: stray '\240' in program minmax0.cpp:7:1: error: stray '\302' in program cin>>n; ^ minmax0.cpp:7:1: error: stray '\240' in program minmax0.cpp:7:1: error: stray '\302' in program minmax0.cpp:7:1: error: stray '\240' in program minmax0.cpp:7:1: error: stray '\302' in program minmax0.cpp:7:1: error: stray '\240' in program minmax0.cpp:7:1: error: stray '\302' in program minmax0.cpp:7:1: error: stray '\240' in program minmax0.cpp:8:1: error: stray '\302' in program int v[n]; ^ minmax0.cpp:8:1: error: stray '\240' in program minmax0.cpp:8:1: error: stray '\302' in program minmax0.cpp:8:1: error: stray '\240' in program minmax0.cpp:8:1: error: stray '\302' in program minmax0.cpp:8:1: error: stray '\240' in program minmax0.cpp:8:1: error: stray '\302' in program minmax0.cpp:8:1: error: stray '\240' in program minmax0.cpp:8:1: error: stray '\302' in program minmax0.cpp:8:1: error: stray '\240' in program minmax0.cpp:9:1: error: stray '\302' in program minim=1000000; ^ minmax0.cpp:9:1: error: stray '\240' in program minmax0.cpp:9:1: error: stray '\302' in program minmax0.cpp:9:1: error: stray '\240' in program minmax0.cpp:9:1: error: stray '\302' in program minmax0.cpp:9:1: error: stray '\240' in program minmax0.cpp:9:1: error: stray '\302' in program minmax0.cpp:9:1: error: stray '\240' in program minmax0.cpp:10:1: error: stray '\302' in program for(i=0;i<n;i++) ^ minmax0.cpp:10:1: error: stray '\240' in program minmax0.cpp:10:1: error: stray '\302' in program minmax0.cpp:10:1: error: stray '\240' in program minmax0.cpp:10:1: error: stray '\302' in program minmax0.cpp:10:1: error: stray '\240' in program minmax0.cpp:10:1: error: stray '\302' in program minmax0.cpp:10:1: error: stray '\240' in program minmax0.cpp:11:1: error: stray '\302' in program { ^ minmax0.cpp:11:1: error: stray '\240' in program minmax0.cpp:11:1: error: stray '\302' in program minmax0.cpp:11:1: error: stray '\240' in program minmax0.cpp:11:1: error: stray '\302' in program minmax0.cpp:11:1: error: stray '\240' in program minmax0.cpp:11:1: error: stray '\302' in program minmax0.cpp:11:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program cin>>v[i]; ^ minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:12:1: error: stray '\302' in program minmax0.cpp:12:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program if(maxim<v[i]) ^ minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:13:1: error: stray '\302' in program minmax0.cpp:13:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program maxim=v[i]; ^ minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:14:1: error: stray '\302' in program minmax0.cpp:14:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program if(minim>v[i]) ^ minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:15:1: error: stray '\302' in program minmax0.cpp:15:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minim=v[i]; ^ minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:16:1: error: stray '\302' in program minmax0.cpp:16:1: error: stray '\240' in program minmax0.cpp:17:1: error: stray '\302' in program } ^ minmax0.cpp:17:1: error: stray '\240' in program minmax0.cpp:17:1: error: stray '\302' in program minmax0.cpp:17:1: error: stray '\240' in program minmax0.cpp:17:1: error: stray '\302' in program minmax0.cpp:17:1: error: stray '\240' in program minmax0.cpp:17:1: error: stray '\302' in program minmax0.cpp:17:1: error: stray '\240' in program minmax0.cpp:18:1: error: stray '\302' in program cout<<minim<<" "<<maxim; ^ minmax0.cpp:18:1: error: stray '\240' in program minmax0.cpp:18:1: error: stray '\302' in program minmax0.cpp:18:1: error: stray '\240' in program minmax0.cpp:18:1: error: stray '\302' in program minmax0.cpp:18:1: error: stray '\240' in program minmax0.cpp:18:1: error: stray '\302' in program minmax0.cpp:18:1: error: stray '\240' in program minmax0.cpp:19:1: error: stray '\302' in program return 0; ^ minmax0.cpp:19:1: error: stray '\240' in program minmax0.cpp:19:1: error: stray '\302' in program minmax0.cpp:19:1: error: stray '\240' in program minmax0.cpp: In function 'int main()': minmax0.cpp:7:9: error: 'cin' was not declared in this scope cin>>n; ^ minmax0.cpp:18:9: 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ă.