Problem paint
User Greninja
Submission Time 2024-02-27 07:14:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:11:35: error: ‘i’ was not declared in this scope
11 | pair <long long, long long> arr [i];
| ^
paint.cpp:13:10: error: ‘arr’ was not declared in this scope
13 | cin >> arr[i].second;
| ^~~
paint.cpp:16:10: error: ‘arr’ was not declared in this scope
16 | cin >> arr[i].first;
| ^~~
paint.cpp:18:8: error: ‘arr’ was not declared in this scope
18 | sort (arr, arr + n);
| ^~~