Borderou de evaluare (job #853413)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Arbperm2 | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 17 feb. 2026 11:42:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'int FenwickTree::binary_search(int)':
main.cpp:31:39: error: 'countl_zero' is not a member of 'std'
31 | int max_p2 = (1 << (31 - std::countl_zero((unsigned)n)));
| ^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:92:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
92 | freopen("arbperm2.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:93:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
93 | freopen("arbperm2.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~