Problem | sandd |
---|---|
User | joshua |
Submission Time | 2025-09-13 20:57:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:7:2: error: expected unqualified-id before ‘int’
7 | int end=P;
| ^~~
sandd.cpp:9:16: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’
9 | while(start<=end){
| ~~~~~^~~~~
sandd.cpp:10:23: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’
10 | int mid=(start+end)/2;
| ~~~~~^~~~
sandd.cpp:19:21: error: overloaded function with no contextual type information
19 | end=mid-1;
| ^
sandd.cpp: At global scope:
sandd.cpp:24:8: error: expected initializer before ‘>>’ token
24 | int cin>>x;
| ^~
sandd.cpp:25:9: error: expected constructor, destructor, or type conversion before ‘(’ token
25 | getPrice(x);
|