Problem scalars
User alettuce
Submission Time 2025-06-28 19:49:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scalars.cpp:5:20: error: ‘a’ was not declared in this scope
5 | bool cmp_ascending(a, b) {
| ^
scalars.cpp:5:23: error: ‘b’ was not declared in this scope
5 | bool cmp_ascending(a, b) {
| ^
scalars.cpp:5:24: error: expression list treated as compound expression in initializer [-fpermissive]
5 | bool cmp_ascending(a, b) {
| ^
scalars.cpp:9:21: error: ‘a’ was not declared in this scope
9 | bool cmp_descending(a, b) {
| ^
scalars.cpp:9:24: error: ‘b’ was not declared in this scope
9 | bool cmp_descending(a, b) {
| ^
scalars.cpp:9:25: error: expression list treated as compound expression in initializer [-fpermissive]
9 | bool cmp_descending(a, b) {
| ^
scalars.cpp: In function ‘int main()’:
scalars.cpp:23:36: error: ‘cmp_ascending’ cannot be used