#1923
egale
Afişaţi, în ordine crescătoare, toate numerele dintr-un anumit interval care au toate cifrele egale.
Pregătire clasa a IX-a, C.N. "Frații Buzești" - Craiova
Problema | egale | Operații I/O |
egale.in /egale.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 8 MB
/
Stivă 8 MB
|
Id soluție | #34873713 | Utilizator | |
Fișier | egale.cpp | Dimensiune | 2.67 KB |
Data încărcării | 16 Februarie 2022, 18:31 | Scor / rezultat | 0 puncte |
egale.cpp: In function 'void cerinta1()': egale.cpp:32:33: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'uint64_t* {aka long long unsigned int*}' [-Wformat=] fscanf ( f, "%ld %ld", &a, &b ) ; ^ egale.cpp:32:33: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'uint64_t* {aka long long unsigned int*}' [-Wformat=] egale.cpp:65:30: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf ( g, "%ld ", i ) ; ^ egale.cpp:72:24: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf ( g, "%ld", i ) ; ^ egale.cpp:81:28: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf ( g, "%ld ", i ) ; ^ egale.cpp: In function 'void cerinta2()': egale.cpp:99:25: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'uint64_t* {aka long long unsigned int*}' [-Wformat=] fscanf ( f, "%ld", &x ) ; ^ egale.cpp:118:24: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf ( g, "%ld", i ) ; ^ egale.cpp: In function 'uint8_t nr_cerinta()': egale.cpp:23:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%hhd", &ans ) ; ^ egale.cpp: In function 'void cerinta1()': egale.cpp:32:35: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%ld %ld", &a, &b ) ; ^ egale.cpp: In function 'void cerinta2()': egale.cpp:99:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf ( f, "%ld", &x ) ; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
10 | Depășit | Limita de timp depășită | 5 | 0 | ||
11 | Depășit | Limita de timp depășită | 5 | 0 | ||
12 | Depășit | Limita de timp depășită | 5 | 0 | ||
13 | Depășit | Limita de timp depășită | 5 | 0 | ||
14 | Depășit | Limita de timp depășită | 5 | 0 | ||
15 | Depășit | Limita de timp depășită | 5 | 0 | ||
16 | Depășit | Limita de timp depășită | 5 | 0 | ||
17 | Depășit | Limita de timp depășită | 5 | 0 | ||
18 | Depășit | Limita de timp depășită | 5 | 0 | ||
19 | Depășit | Limita de timp depășită | 5 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema egale 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ă.