Problem binarycoins
User Cat
Submission Time 2025-04-21 08:25:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
binarycoins.cpp: In function ‘int main()’:
binarycoins.cpp:9:14: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} to binary ‘operator%’
9 | while( b % sqrt(b) = 2)
| ~ ^ ~~~~~~~
| | |
| | __gnu_cxx::__enable_if<true, double>::__type {aka double}
| long long int
binarycoins.cpp:10:25: error: ‘n’ was not declared in this scope
10 | for (int i = 0; i < n; i++ ){
| ^
binarycoins.cpp:18:14: error: expected ‘;’ before ‘}’ token
18 | c = b
| ^
| ;
19 | }
| ~