Problem sealevel
User shawn
Submission Time 2024-07-03 16:12:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sealevel.cpp: In function ‘int32_t main()’:
sealevel.cpp:29:42: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} to non-scalar type ‘std::vector<std::pair<long long int, long long int> >’ requested
29 | vector<pair<int, int>> t = tov.back();
| ~~~~~~~~^~
sealevel.cpp:30:11: error: expected ‘(’ before ‘pair’
30 | for pair<int, int> a: t{
| ^~~~
| (
sealevel.cpp:30:30: error: expected ‘)’ before ‘{’ token
30 | for pair<int, int> a: t{
| ~~~~ ^
| )
sealevel.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
sealevel.cpp:8:15: note: to match this ‘{’
8 | int32_t main(){
| ^