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 | #49725139 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 390 B |
Data încărcării | 13 Martie 2024, 11:33 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:7:1: error: stray '\357' in program for(i=1; i<=n; i+) ^ 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(i=1;1<=n; i++) ^ 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:22:12: 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:18: error: expected initializer before '-' token int i, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:22: error: expected primary-expression before ',' token int i, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:24: error: 'radacina' was not declared in this scope int i, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:34: error: 'nr' was not declared in this scope int i, n, ap[101]-{0}, radacina, nr-0, T[101]; ^ estearbore.cpp:5:40: error: 'T' was not declared in this scope int i, 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:7:7: error: expected '(' before 'i' for(i=1; i<=n; i+) ^ estearbore.cpp:8:1: error: expected primary-expression before '{' token { ^ 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 'i' for(i=1;1<=n; i++) ^ estearbore.cpp:12:13: error: expected ';' before numeric constant for(i=1;1<=n; i++) ^ 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; i++) ^ estearbore.cpp:16:1: error: expected ')' before 'for' 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:21:4: error: 'ap' was not declared in this scope if(ap[i]==0 ) ^ estearbore.cpp:23: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ă.