Problem | grassplant |
---|---|
User | Pan |
Submission Time | 2023-12-20 16:30:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
grassplant.cpp: In function ‘int main()’:
grassplant.cpp:105:22: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
105 | cin.sync_with_stdio(nullptr);
| ^~~~~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from grassplant.cpp:1:
/usr/include/c++/9/bits/ios_base.h:752:26: note: initializing argument 1 of ‘static bool std::ios_base::sync_with_stdio(bool)’
752 | sync_with_stdio(bool __sync = true);
| ~~~~~^~~~~~~~~~~~~