Problem sana
User Sans12345
Submission Time 2024-12-30 15:11:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sana.cpp: In function ‘int main()’:
sana.cpp:21:9: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘std::pair<long long int, long long int> [200005]’
21 | sort(a.begin(),a.end());
| ^~~~~
sana.cpp:21:19: error: request for member ‘end’ in ‘a’, which is of non-class type ‘std::pair<long long int, long long int> [200005]’
21 | sort(a.begin(),a.end());
| ^~~
sana.cpp:25:3: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
25 | cnt[a[i].first]++;
| ^~~
| int
sana.cpp:29:6: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
29 | if(cnt[2]==1 && cnt[3]==3){
| ^~~
| int
sana.cpp:34:6: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
34 | if(cnt[3]==2 && cnt[4]==2){
| ^~~
| int
sana.cpp:41:18: error: request for member ‘size’ in ‘a’, which is