Problema | Paranteze | Operații I/O |
![]() paranteze.in /paranteze.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57432477 | Utilizator | |
Fișier | paranteze.cpp | Dimensiune | 1.06 KB |
Data încărcării | 31 Martie 2025, 11:08 | Scor / rezultat | Eroare de compilare |
paranteze.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream fout("paranteze.out") ^ paranteze.cpp: In function 'void init()': paranteze.cpp:9:4: error: 'st' was not declared in this scope st[k]=-1; ^ paranteze.cpp:9:7: error: 'k' was not declared in this scope st[k]=-1; ^ paranteze.cpp: In function 'int succesor()': paranteze.cpp:13:7: error: 'st' was not declared in this scope if(st[k]<1) ^ paranteze.cpp:13:10: error: 'k' was not declared in this scope if(st[k]<1) ^ paranteze.cpp: In function 'int valid()': paranteze.cpp:23:19: error: 'k' was not declared in this scope for(int i=1;i<=k;i++) ^ paranteze.cpp:24:10: error: 'st' was not declared in this scope if(st[i]==0) ^ paranteze.cpp:28:11: error: 'n' was not declared in this scope if(pd<=n/2 && pi<=pd) ^ paranteze.cpp: In function 'int solutie()': paranteze.cpp:34:7: error: 'k' was not declared in this scope if(k==n) ^ paranteze.cpp:34:10: error: 'n' was not declared in this scope if(k==n) ^ paranteze.cpp: In function 'void tipar()': paranteze.cpp:41:15: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ paranteze.cpp:43:10: error: 'st' was not declared in this scope if(st[i]==0) ^ paranteze.cpp:44:10: error: 'fout' was not declared in this scope fout<<'('; ^ paranteze.cpp:46:10: error: 'fout' was not declared in this scope fout<<')'; ^ paranteze.cpp: In function 'int main()': paranteze.cpp:52:9: error: 'n' was not declared in this scope fin>>n; ^ paranteze.cpp:53:4: error: 'k' was not declared in this scope k=1; ^ paranteze.cpp:59:10: error: 'as' was not declared in this scope as=succesor(); ^ paranteze.cpp:61:13: error: 'as' was not declared in this scope while(as==1 && valid()==0); ^ paranteze.cpp: In function 'int succesor()': paranteze.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ paranteze.cpp: In function 'int solutie()': paranteze.cpp:37:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Paranteze 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ă.