| Problema | TriunghiDublu | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64624663 | Utilizator | |
| Fișier | triunghidublu.cpp | Dimensiune | 426 B |
| Data încărcării | 19 Mai 2026, 10:18 | Scor/rezultat | Eroare de compilare |
triunghidublu.cpp: In function ‘int main()’: triunghidublu.cpp:9:5: error: expected initializer before ‘for’ 9 | for(i=1;i<=n;i++) | ^~~ triunghidublu.cpp:9:14: warning: statement has no effect [-Wunused-value] 9 | for(i=1;i<=n;i++) | ~^~~ triunghidublu.cpp:9:21: error: expected ‘;’ before ‘)’ token 9 | for(i=1;i<=n;i++) | ^ | ; triunghidublu.cpp:17:13: error: ‘j’ was not declared in this scope 17 | for(j=1;j<=1;j++) | ^ triunghidublu.cpp:18:5: error: expected primary-expression before ‘}’ token 18 | } | ^ triunghidublu.cpp:19:10: error: ‘j’ was not declared in this scope 19 | for(j=1;j<=1;j++) | ^ triunghidublu.cpp:21:11: error: ‘j’ was not declared in this scope 21 | for(j=1;j<=n-1;j++) | ^ triunghidublu.cpp:23:12: error: ‘j’ was not declared in this scope 23 | for(j=1;j<=1;j++) | ^ triunghidublu.cpp:23:8: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 23 | for(j=1;j<=1;j++) | ^~~ triunghidublu.cpp:25:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 25 | cout<<endl; | ^~~~ triunghidublu.cpp:27:1: error: ‘retrun’ was not declared in this scope 27 | retrun 0; | ^~~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema TriunghiDublu 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ă.