#3622
Se dă un interval [l,r]. Aflaţi câte perechi de numere pare se pot forma alegând două numere din interval.
| Problema | perechipare | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64881903 | Utilizator | |
| Fișier | perechipare.cpp | Dimensiune | 375 B |
| Data încărcării | 09 Iunie 2026, 11:58 | Scor/rezultat | 0 puncte |
perechipare.cpp: In function ‘int main()’: perechipare.cpp:13:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 13 | if ( a%2 !=0 ); | ^~ perechipare.cpp:14:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 14 | { | ^ perechipare.cpp:17:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 17 | for ( int i=a; i<=b;i=i+2); | ^~~ perechipare.cpp:18:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | { | ^ perechipare.cpp:19:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 19 | for (int j=a ; j<=b; j=j+2); | ^~~ perechipare.cpp:20:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 20 | { | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 4 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 9 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 9 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 9 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 9 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 12 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 12 | 0 | ||
| 11 | 0.001 secunde | Raspuns gresit. | 12 | 0 | ||
| 12 | 0.001 secunde | Raspuns gresit. | 12 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema perechipare 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ă.