| Problem | photo |
|---|---|
| User | Memeathon |
| Submission Time | 2025-02-06 10:57:21 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
photo.cpp:7:47: error: redefinition of ‘long long int ans’
7 | ll n, s, ans=0, a[maxn][maxn], ptr[maxn], mx, ans;
| ^~~
photo.cpp:7:10: note: ‘long long int ans’ previously defined here
7 | ll n, s, ans=0, a[maxn][maxn], ptr[maxn], mx, ans;
| ^~~
photo.cpp: In function ‘int main()’:
photo.cpp:13:22: error: ‘i’ was not declared in this scope
13 | cin >> a[i][j];
| ^
photo.cpp:15:16: error: ‘i’ was not declared in this scope
15 | sort(a[i], a[i]+s);
| ^
photo.cpp:16: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>)’
16 | pq.push({a[i][0], i});
| ^
In file i