#525
Numere1
Se dau n
numere naturale. Determinaţi cele mai mari două numere cu trei cifre care nu apar printre numerele date.
Problema | Numere1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9397301 | Utilizator | |
Fișier | numere1.cpp | Dimensiune | 503 B |
Data încărcării | 01 Mai 2018, 20:13 | Scor / rezultat | Eroare de compilare |
numere1.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ numere1.cpp:2:1: error: stray '\302' in program using namespace std; ^ numere1.cpp:2:1: error: stray '\240' in program numere1.cpp:2:1: error: stray '\302' in program numere1.cpp:2:1: error: stray '\240' in program numere1.cpp:4:1: error: stray '\302' in program int gaseste_in_sir(int v[],int n,int x){ ^ numere1.cpp:4:1: error: stray '\240' in program numere1.cpp:4:1: error: stray '\302' in program numere1.cpp:4:1: error: stray '\240' in program numere1.cpp:4:1: error: stray '\302' in program numere1.cpp:4:1: error: stray '\240' in program numere1.cpp:4:1: error: stray '\302' in program numere1.cpp:4:1: error: stray '\240' in program numere1.cpp:5:1: error: stray '\302' in program int i,gasit=0; ^ numere1.cpp:5:1: error: stray '\240' in program numere1.cpp:12:1: error: stray '\302' in program return gasit; ^ numere1.cpp:12:1: error: stray '\240' in program numere1.cpp:14:1: error: stray '\302' in program int main(){ ^ numere1.cpp:14:1: error: stray '\240' in program numere1.cpp:16:1: error: stray '\302' in program int n,i,x,a,b,nr_in_afara_sirului=0; ^ numere1.cpp:16:1: error: stray '\240' in program numere1.cpp:18:1: error: stray '\302' in program int v[n]; ^ numere1.cpp:18:1: error: stray '\240' in program numere1.cpp:38:1: error: stray '\302' in program return 0; ^ numere1.cpp:38:1: error: stray '\240' in program numere1.cpp: In function 'int main()': numere1.cpp:17:1: error: 'cin' was not declared in this scope cin>>n; ^ numere1.cpp:37:1: error: 'cout' was not declared in this scope cout<<a<<" "<<b; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere1 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ă.