Borderou de evaluare (job #2840320)
Utilizator | Data | 27 ianuarie 2022 13:29:28 | |
---|---|---|---|
Problema | Ograzi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void check(int, int, int)':
main.cpp:25:23: error: cannot convert 'std::pair<int, int>' to 'int' in initialization
25 | for(int i : loc[nr])
| ^
main.cpp:8:11: error: request for member 'first' in 'i', which is of non-class type 'int'
8 | #define x first
| ^~~~~
main.cpp:27:14: note: in expansion of macro 'x'
27 | if(i.x <= a && a <= i.x + lung && i.y <= b && b <= i.y + lat)
| ^
main.cpp:8:11: error: request for member 'first' in 'i', which is of non-class type 'int'
8 | #define x first
| ^~~~~
main.cpp:27:31: note: in expansion of macro 'x'
27 | if(i.x <= a && a <= i.x + lung && i.y <= b && b <= i.y + lat)
| ^
main.cpp:9:11: error: request for member 'second' in 'i', which is of non-class type 'int'
9 | #define y second
| ^~~~~~
main.cpp:27:45: note: in expansion of macro 'y'
27 | if(i.x <= a && a <= i.x + lung && i.y <= b && b <= i.y + lat)
| ^
main.cpp:9:11: error: request for member 'second' in 'i', which is of non-class type 'int'
9 | #define y second
| ^~~~~~
main.cpp:27:62: note: in expansion of macro 'y'
27 | if(i.x <= a && a <= i.x + lung && i.y <= b && b <= i.y + lat)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !