Borderou de evaluare (job #3242338)
Utilizator | Data | 11 septembrie 2024 14:00:07 | |
---|---|---|---|
Problema | Sobo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Dynamic()':
main.cpp:6:14: error: 'INT_MAX' was not declared in this scope
6 | #define INF (INT_MAX-1)
| ^~~~~~~
main.cpp:31:16: note: in expansion of macro 'INF'
31 | ll answer=-INF, lim=(1<<N)-1;
| ^~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 | #define MAXN 16
main.cpp:34:35: error: 'lim' was not declared in this scope
34 | for(ll bitmask=0;bitmask<=lim;bitmask++)
| ^~~
main.cpp:37:35: error: 'lim' was not declared in this scope
37 | for(ll bitmask=1;bitmask<=lim;bitmask++)
| ^~~
main.cpp:48:42: warning: unused variable 'worst_case' [-Wunused-variable]
48 | ll new_mask=bitmask, worst_case=-1;
| ^~~~~~~~~~
main.cpp:57:30: error: 'lim' was not declared in this scope
57 | answer=max(answer,dp[lim]);
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !