Problema | sir_vale | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49867864 | Utilizator | |
Fișier | sir_vale.cpp | Dimensiune | 573 B |
Data încărcării | 18 Martie 2024, 13:16 | Scor / rezultat | Eroare de compilare |
sir_vale.cpp: In function 'int main()': sir_vale.cpp:6:14: error: 'INT_MAX' was not declared in this scope int n,i,mini=INT_MAX,k=0,p=0,v[1001],ok=1; ^ sir_vale.cpp:9:14: error: 'v' was not declared in this scope cin>>v[i]; ^ sir_vale.cpp:12:5: error: 'p' was not declared in this scope p=i; ^ sir_vale.cpp:13:5: error: 'k' was not declared in this scope k=1; ^ sir_vale.cpp:15:13: error: 'k' was not declared in this scope k++; ^ sir_vale.cpp:17:8: error: 'k' was not declared in this scope if(k!=1){ cout<<"NU";} ^ sir_vale.cpp:20:5: error: 'ok' was not declared in this scope ok=1; ^ sir_vale.cpp:21:20: error: 'p' was not declared in this scope for(i=0;i<=p-1;i++){ ^ sir_vale.cpp:22:12: error: 'v' was not declared in this scope if(v[i]<=v[i+1]) ^ sir_vale.cpp:25:15: error: 'p' was not declared in this scope for(i=p;i<=n-2;i++) ^ sir_vale.cpp:26:13: error: 'v' was not declared in this scope {if(v[i]>=v[i+1]) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sir_vale 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ă.