Problem lightningrod
User eliasxyz
Submission Time 2025-06-05 19:14:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:27:3: error: ‘XYsum’ was not declared in this scope
27 | XYsum=2*Xrod - XYdiff;
| ^~~~~
lightningrod.cpp:28:26: error: expression cannot be used as a function
28 | if(XYsum>scaryXY.first()+scaryXY.second()){
| ^
lightningrod.cpp:28:43: error: expression cannot be used as a function
28 | if(XYsum>scaryXY.first()+scaryXY.second()){
| ^
lightningrod.cpp:29:18: error: expression cannot be used as a function
29 | scaryXY.first()=Xrod;
| ^
lightningrod.cpp:30:19: error: expression cannot be used as a function
30 | scaryXY.second()=Xrod-XYdiff;
| ^