Problem photo
User Memeathon
Submission Time 2025-02-07 15:52:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp:7:1: error: ‘ll’ does not name a type
7 | ll n, s, a[maxn][maxn], ptr[maxn];
| ^~
photo.cpp:3:13: error: conversion from ‘long int’ to non-scalar type ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >’ requested
3 | #define INF 123456789123456789
| ^~~~~~~~~~~~~~~~~~
photo.cpp:8:57: note: in expansion of macro ‘INF’
8 | priority_queue<ii, vector<ii>, greater<ii>> pq, mx, ans=INF;
| ^~~
photo.cpp: In function ‘int main()’:
photo.cpp:10:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
10 | cin >> n >> s;
| ^
| yn
photo.cpp:10:14: error: ‘s’ was not declared in this scope
10 | cin >> n >> s;
| ^
photo.cpp:13:11: error: ‘a’