Borderou de evaluare (job #2999557)
Utilizator | Data | 11 martie 2023 10:25:40 | |
---|---|---|---|
Problema | Biperm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:30:1: error: 'bitset' does not name a type
30 | bitset<MAX_SIZE + 1> freq;
| ^~~~~~
main.cpp:35:49: error: 'bitset' has not been declared
35 | void generateGoodBiperm(int pos, vector<int> v, bitset<MAX_SIZE + 1> freq, int actPerm[MAX_SIZE + 1]) {
| ^~~~~~
main.cpp:35:55: error: expected ',' or '...' before '<' token
35 | void generateGoodBiperm(int pos, vector<int> v, bitset<MAX_SIZE + 1> freq, int actPerm[MAX_SIZE + 1]) {
| ^
main.cpp: In function 'void generateGoodBiperm(int, std::vector<int>, int)':
main.cpp:45:9: error: 'freq' was not declared in this scope; did you mean 'frq'?
45 | if (freq[actPerm[pos]] == 0) {
| ^~~~
| frq
main.cpp:45:14: error: 'actPerm' was not declared in this scope
45 | if (freq[actPerm[pos]] == 0) {
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:67:30: error: 'freq' was not declared in this scope; did you mean 'frq'?
67 | generateGoodBiperm(1, v, freq, perm1);
| ^~~~
| frq
main.cpp:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for (int i = 0; i < res.size(); ++i) {
| ~~^~~~~~~~~~~~
main.cpp:74:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for (int i = 0; i < res.size(); ++i) {
| ~~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !