Problem | duckhunt5 |
---|---|
User | wenhao |
Submission Time | 2025-06-18 16:07:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:5:11: error: ‘std::ios_base::ios_base()’ is protected within this context
5 | ios_base()::sync_with_stdio(false); cin.tie(0);
| ^
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 duckhunt5.cpp:1:
/usr/include/c++/9/bits/ios_base.h:861:5: note: declared protected here
861 | ios_base() throw ();
| ^~~~~~~~
duckhunt5.cpp:5:12: error: expected ‘;’ before ‘::’ token
5 | ios_base()::sync_with_stdio(false); cin.tie(0);
| ^~
| ;