Problem paint
User itsLQ
Submission Time 2023-06-04 10:57:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:14:9: error: ‘N’ was not declared in this scope
14 | cin >> N;
| ^
paint.cpp:20:10: error: ‘base’ was not declared in this scope
20 | cin >> base[i];
| ^~~~
paint.cpp:24:10: error: ‘items’ was not declared in this scope
24 | cin >> items[i].first;
| ^~~~~
paint.cpp:25:21: error: ‘base’ was not declared in this scope
25 | items[i].second = base[i];
| ^~~~
paint.cpp:28:7: error: ‘items’ was not declared in this scope
28 | sort(items, items+N, foo);
| ^~~~~