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 | #3371730 | Utilizator | |
Fișier | paranteze.cpp | Dimensiune | 1.06 KB |
Data încărcării | 03 Noiembrie 2016, 13:46 | Scor / rezultat | Eroare de compilare |
paranteze.cpp:6:11: error: variable or field 'init' declared void void init(st[],int k) ^ paranteze.cpp:6:11: error: 'st' was not declared in this scope paranteze.cpp:6:14: error: expected primary-expression before ']' token void init(st[],int k) ^ paranteze.cpp:6:16: error: expected primary-expression before 'int' void init(st[],int k) ^ paranteze.cpp: In function 'int succesor(int*, int)': paranteze.cpp:18:1: error: expected ';' before '}' token } ^ paranteze.cpp: In function 'int valid(int*, int)': paranteze.cpp:27:12: error: 'n' was not declared in this scope if(npi>n/2 || npd >n/2) ^ paranteze.cpp: In function 'void tipar(int*, int)': paranteze.cpp:35:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ paranteze.cpp: In function 'void back(int*, int&)': paranteze.cpp:45:14: error: 'init' was not declared in this scope init(st,k); ^ paranteze.cpp:50:13: error: 'as' was not declared in this scope as=succesor(st,k); ^ paranteze.cpp:52:17: error: 'ev' was not declared in this scope ev=valid(st,k); ^ paranteze.cpp:54:15: error: 'as' was not declared in this scope while(as && !ev) ^ paranteze.cpp:54:22: error: 'ev' was not declared in this scope while(as && !ev) ^ paranteze.cpp:55:13: error: expected ';' before 'if' if (as) ^ paranteze.cpp:56:19: error: 'n' was not declared in this scope if(k==n) ^ paranteze.cpp:65:1: error: a function-definition is not allowed here before '{' token { ^ paranteze.cpp:69:1: error: expected '}' at end of input } ^
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ă.