Borderou de evaluare (job #3352498)
| Utilizator | Data | 28 aprilie 2026 11:54:47 | |
|---|---|---|---|
| Problema | AVD | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool isok(std::vector<int>&, std::vector<std::vector<int> >&, int, int, char (*)[16384])':
main.cpp:26:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if(p == a.size())
| ~~^~~~~~~~~~~
main.cpp:27:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
27 | return memo[p][mask] = true;
| ~~~~~~~~~~~~~~^~~~~~
main.cpp:32:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
32 | return memo[p][mask] = true;
| ~~~~~~~~~~~~~~^~~~~~
main.cpp:34:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
34 | return memo[p][mask] = false;
| ~~~~~~~~~~~~~~^~~~~~~
main.cpp: In function 'void gen(std::vector<int>&, int, int&, int&, std::vector<std::vector<int> >&)':
main.cpp:43:29: error: cannot convert 'char (*)[32768]' to 'char (*)[16384]'
43 | if(isok(a, f, 0, 1, memo))
| ^~~~
| |
| char (*)[32768]
main.cpp:23:73: note: initializing argument 5 of 'bool isok(std::vector<int>&, std::vector<std::vector<int> >&, int, int, char (*)[16384])'
23 | bool isok(vector<int> &a, vector<vector<int>> &f, int mask, int p, char memo[14][1 << 14]) {
| ~~~~~^~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
