#239
NrLipsa
Se dau mai multe numere naturale cu cel mult 9
cifre fiecare. Să se determine cele mai mari două numere de 3
cifre care nu se găsesc printre numerele date.
Variante Bacalaureat 2009
Problema | NrLipsa | Operații I/O |
nrlipsa.in /nrlipsa.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53314238 | Utilizator | |
Fișier | nrlipsa.cpp | Dimensiune | 716 B |
Data încărcării | 24 Octombrie 2024, 09:50 | Scor / rezultat | Eroare de compilare |
nrlipsa.cpp:8:18: warning: missing terminating " character [enabled by default] ifstream cin("nrlipsa.in) ^ nrlipsa.cpp:8:5: error: missing terminating " character ifstream cin("nrlipsa.in) ^ nrlipsa.cpp:9:19: warning: missing terminating " character [enabled by default] ofstream cout("nrlipsa.out) ^ nrlipsa.cpp:9:5: error: missing terminating " character ofstream cout("nrlipsa.out) ^ nrlipsa.cpp: In function 'int main()': nrlipsa.cpp:10:22: error: 'max1' has not been declared long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:26: error: default arguments are only permitted for function parameters long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:30: error: 'max2' has not been declared long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:34: error: default arguments are only permitted for function parameters long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:38: error: 'cnt' has not been declared long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:41: error: default arguments are only permitted for function parameters long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:43: error: expected ')' before ';' token long long int a, max1=0, max2=0, cnt=0; ^ nrlipsa.cpp:10:43: error: expected ')' before ';' token nrlipsa.cpp:11:16: error: 'a' was not declared in this scope while(cin>>a) ^ nrlipsa.cpp:14:9: error: 'cautam' was not declared in this scope cautam nr care lipsa in frecv if(f[i}) ^ nrlipsa.cpp:14:16: error: expected ';' before 'nr' cautam nr care lipsa in frecv if(f[i}) ^ nrlipsa.cpp:14:46: error: expected primary-expression before ')' token cautam nr care lipsa in frecv if(f[i}) ^ nrlipsa.cpp:14:46: error: expected ';' before ')' token nrlipsa.cpp: At global scope: nrlipsa.cpp:17:5: error: expected unqualified-id before 'for' for(int i=999; i>=100; i--) ^ nrlipsa.cpp:17:20: error: 'i' does not name a type for(int i=999; i>=100; i--) ^ nrlipsa.cpp:17:28: error: 'i' does not name a type for(int i=999; i>=100; i--) ^ nrlipsa.cpp:30:5: error: expected unqualified-id before 'return' return 0; ^ nrlipsa.cpp:31:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrLipsa 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ă.