Problem lightningrod
User Kiameimon
Submission Time 2024-01-04 14:29:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:78:15: error: expected primary-expression before ‘{’ token
78 | if(arr[1] != {mn, 0}) arr.push_front({mn, 0});
| ^
lightningrod.cpp:78:14: error: expected ‘)’ before ‘{’ token
78 | if(arr[1] != {mn, 0}) arr.push_front({mn, 0});
| ~ ^~
| )
lightningrod.cpp:78:28: error: ‘class std::vector<Point>’ has no member named ‘push_front’
78 | if(arr[1] != {mn, 0}) arr.push_front({mn, 0});
| ^~~~~~~~~~
lightningrod.cpp:79:17: error: expected primary-expression before ‘{’ token
79 | if(arr[n-1] != {mx, 0}) arr.push_back({mx, 0});
| ^
lightningrod.cpp:79:16: error: expected ‘)’ before ‘{’ token
79 | if(arr[n-1] != {mx, 0}) arr.push_back({mx, 0});
| ~ ^~
| )