#4548
Se dă un număr natural n. Să se afișeze o săgeată de dimensiune n, ca în exemplu.
| Problema | Sageata1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64766183 | Utilizator | |
| Fișier | sageata1.cpp | Dimensiune | 460 B |
| Data încărcării | 28 Mai 2026, 17:21 | Scor/rezultat | 100 puncte |
sageata1.cpp: In function ‘int main()’: sageata1.cpp:7:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 7 | for (i=1; i<=n; i++) | ^~~ sageata1.cpp:9:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 9 | cout<<"*\n"; | ^~~~ sageata1.cpp:10:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 10 | for (i=1; i<=n; i++) | ^~~ sageata1.cpp:12:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 12 | cout<<"**\n"; | ^~~~ sageata1.cpp:13:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for (i=1; i<=n; i++) | ^~~ sageata1.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | cout<<"***\n"; | ^~~~ sageata1.cpp:16:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for (i=1; i<=n; i++) | ^~~ sageata1.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | cout<<"**\n"; | ^~~~ sageata1.cpp:19:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 19 | for (i=1; i<=n; i++) | ^~~ sageata1.cpp:21:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | cout<<"*\n"; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| 6 | 0.002 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sageata1 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ă.