Problem photo
User Memeathon
Submission Time 2025-02-06 11:16:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp:7:15: error: ‘INF’ was not declared in this scope
7 | int n, s, ans=INF, a[maxn][maxn], ptr[maxn], mx;
| ^~~
photo.cpp: In function ‘int main()’:
photo.cpp:14:20: error: ‘a’ was not declared in this scope
14 | cin >> a[i][j];
| ^
photo.cpp:16:14: error: ‘a’ was not declared in this scope
16 | sort(a[i], a[i]+s);
| ^
photo.cpp:17:29: error: no matching function for call to ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::push(<brace-enclosed initializer list>)’
17 | pq.push({a[i][0], i});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from photo.cpp:1:
/usr/include/c++/9/bits/stl_qu