Borderou de evaluare (job #808878)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Baloane (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 feb. 2025 13:28:02 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:20: error: no matching function for call to 'std::bitset<1000105>::flip(const int&, int)'
15 | viz[x].flip(max(x-r,0),x+r-1);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/i686-pc-linux-gnu/bits/stdc++.h:52,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bitset:1209:7: note: candidate: 'std::bitset<_Nb>& std::bitset<_Nb>::flip() [with unsigned int _Nb = 1000105]'
1209 | flip() _GLIBCXX_NOEXCEPT
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bitset:1209:7: note: candidate expects 0 arguments, 2 provided
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bitset:1223:7: note: candidate: 'std::bitset<_Nb>& std::bitset<_Nb>::flip(std::size_t) [with unsigned int _Nb = 1000105; std::size_t = unsigned int]'
1223 | flip(size_t __position)
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bitset:1223:7: note: candidate expects 1 argument, 2 provided
main.cpp:16:15: error: incompatible types in assignment of 'int' to 'int [1000105]'
16 | v[x-r]=1;
| ~~~~~~^~
main.cpp:17:17: error: incompatible types in assignment of 'int' to 'int [1000105]'
17 | v[x+r-1]=-1;
| ~~~~~~~~^~~