Problem sadtrainer
User godex
Submission Time 2025-08-26 22:26:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sadtrainer.cpp: In function ‘int32_t main()’:
sadtrainer.cpp:6:7: error: ‘sync_with_studio’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
6 | ios::sync_with_studio(false);
| ^~~~~~~~~~~~~~~~
sadtrainer.cpp:7:6: error: ‘bitsptr’ was not declared in this scope
7 | cin(bitsptr);
| ^~~~~~~
sadtrainer.cpp:14:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
14 | cout >> arr[k - 1];
| ~~~~ ^~ ~~~~~~~~~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
sadtrainer.cpp:14:7: note: candidate: ‘operator>>(int, long long int)’ <built-in>
14 | cout >> arr[k - 1];
| ~~~~~^~~~~~~~~~~~~
sadtrainer.cpp:14:7: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<