Problema | esteArbore | Operații I/O |
![]() estearbore.in /estearbore.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49725001 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 389 B |
Data încărcării | 13 Martie 2024, 11:30 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:7:1: error: stray '\357' in program for(1-1; i<=n; 1++) ^ estearbore.cpp:7:1: error: stray '\274' in program estearbore.cpp:7:1: error: stray '\210' in program estearbore.cpp:7:1: error: stray '\357' in program estearbore.cpp:7:1: error: stray '\274' in program estearbore.cpp:7:1: error: stray '\211' in program estearbore.cpp:12:1: error: stray '\357' in program for(1=1;1<=n; 1++) ^ estearbore.cpp:12:1: error: stray '\274' in program estearbore.cpp:12:1: error: stray '\210' in program estearbore.cpp:12:1: error: stray '\357' in program estearbore.cpp:12:1: error: stray '\274' in program estearbore.cpp:12:1: error: stray '\233' in program estearbore.cpp:12:1: error: stray '\357' in program estearbore.cpp:12:1: error: stray '\274' in program estearbore.cpp:12:1: error: stray '\233' in program estearbore.cpp:12:1: error: stray '\357' in program estearbore.cpp:12:1: error: stray '\274' in program estearbore.cpp:12:1: error: stray '\211' in program estearbore.cpp:23:10: error: empty character constant fout<<i<<''; ^ estearbore.cpp: In function 'int main()': estearbore.cpp:3:1: error: 'ifstream' was not declared in this scope ifstream fin("frunze.in"); ^ estearbore.cpp:3:10: error: expected ';' before 'fin' ifstream fin("frunze.in"); ^ estearbore.cpp:4:1: error: 'ofstream' was not declared in this scope ofstream fout("frunze.out"); ^ estearbore.cpp:4:10: error: expected ';' before 'fout' ofstream fout("frunze.out"); ^ estearbore.cpp:5:5: error: expected unqualified-id before numeric constant int 1, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:22: error: expected primary-expression before ',' token int 1, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:24: error: 'radacina' was not declared in this scope int 1, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:34: error: 'nr' was not declared in this scope int 1, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:40: error: 'T' was not declared in this scope int 1, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:6:1: error: 'fin' was not declared in this scope fin>>n; ^ estearbore.cpp:6:6: error: 'n' was not declared in this scope fin>>n; ^ estearbore.cpp:7:7: error: expected '(' before numeric constant for(1-1; i<=n; 1++) ^ estearbore.cpp:7:10: warning: statement has no effect [-Wunused-value] for(1-1; i<=n; 1++) ^ estearbore.cpp:7:12: error: 'i' was not declared in this scope for(1-1; i<=n; 1++) ^ estearbore.cpp:7:19: error: lvalue required as increment operand for(1-1; i<=n; 1++) ^ estearbore.cpp:8:1: error: expected ')' before '{' token { ^ estearbore.cpp:10:1: error: 'ap' was not declared in this scope ap[T[i]]++; ^ estearbore.cpp:12:7: error: expected '(' before numeric constant for(1=1;1<=n; 1++) ^ estearbore.cpp:12:8: error: lvalue required as left operand of assignment for(1=1;1<=n; 1++) ^ estearbore.cpp:12:13: error: expected ';' before numeric constant for(1=1;1<=n; 1++) ^ estearbore.cpp:15:1: error: 'fout' was not declared in this scope fout<<radacina<<endl; ^ estearbore.cpp:15:17: error: 'endl' was not declared in this scope fout<<radacina<<endl; ^ estearbore.cpp:16:1: error: expected primary-expression before 'for' for(i-1; i<=n; 1++) ^ estearbore.cpp:16:1: error: expected ')' before 'for' estearbore.cpp:16:5: error: 'i' was not declared in this scope for(i-1; i<=n; 1++) ^ estearbore.cpp:16:17: error: lvalue required as increment operand for(i-1; i<=n; 1++) ^ estearbore.cpp:17:5: error: 'ap' was not declared in this scope if (ap[i]=-0) ^ estearbore.cpp:19:1: error: 'fout' was not declared in this scope fout<<nr<<endl; ^ estearbore.cpp:19:11: error: 'endl' was not declared in this scope fout<<nr<<endl; ^ estearbore.cpp:20:8: warning: statement has no effect [-Wunused-value] for(1-1; i<-n; 1+4) ^ estearbore.cpp:20:10: error: 'i' was not declared in this scope for(1-1; i<-n; 1+4) ^ estearbore.cpp:20:18: warning: for increment expression has no effect [-Wunused-value] for(1-1; i<-n; 1+4) ^ estearbore.cpp:21:1: error: unable to find numeric literal operator 'operator"" f' 1f ^ estearbore.cpp:22:2: error: 'ap' was not declared in this scope (ap[1]--0 ) ^ estearbore.cpp:23:1: error: expected ';' before 'fout' fout<<i<<''; ^ estearbore.cpp:24:13: error: expected '}' at end of input return 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema esteArbore 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ă.