Problem | nerdinvitation |
---|---|
User | om2024 |
Submission Time | 2024-08-01 15:55:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nerdinvitation.cpp: In function ‘int main()’:
nerdinvitation.cpp:7:16: error: array size missing in ‘p1’
7 | pair<int,int> p1[];
| ^~
nerdinvitation.cpp:10:23: error: request for member ‘second’ in ‘p1’, which is of non-class type ‘std::pair<int, int> [1]’
10 | long long diff = p1.second - p1.first;
| ^~~~~~
nerdinvitation.cpp:10:35: error: request for member ‘first’ in ‘p1’, which is of non-class type ‘std::pair<int, int> [1]’
10 | long long diff = p1.second - p1.first;
| ^~~~~