Borderou de evaluare (job #3184990)
Utilizator | Data | 17 decembrie 2023 15:46:26 | |
---|---|---|---|
Problema | Geometry | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:20: error: expected unqualified-id before '{' token
6 | struct polong long { long long x,y; };
| ^
main.cpp:7:25: error: 'long' specified with 'polong'
7 | struct segment { polong long a,b; };
| ^~~~
main.cpp:7:30: error: field 'a' has incomplete type 'polong'
7 | struct segment { polong long a,b; };
| ^
main.cpp:6:8: note: forward declaration of 'struct polong'
6 | struct polong long { long long x,y; };
| ^~~~~~
main.cpp:7:25: error: 'long' specified with 'polong'
7 | struct segment { polong long a,b; };
| ^~~~
main.cpp:7:32: error: field 'b' has incomplete type 'polong'
7 | struct segment { polong long a,b; };
| ^
main.cpp:6:8: note: forward declaration of 'struct polong'
6 | struct polong long { long long x,y; };
| ^~~~~~
main.cpp:21:26: error: expected initializer before 'long'
21 | long long LineFromPolong long(const line& l,const polong long& p){
| ^~~~
main.cpp:24:28: error: 'long' specified with 'polong'
24 | segment MakeSegment(polong long a,polong long b){
| ^~~~
main.cpp:24:42: error: 'long' specified with 'polong'
24 | segment MakeSegment(polong long a,polong long b){
| ^~~~
main.cpp:24:33: error: 'a' has incomplete type
24 | segment MakeSegment(polong long a,polong long b){
| ~~~~~~~~~~~~^
main.cpp:6:8: note: forward declaration of 'struct polong'
6 | struct polong long { long long x,y; };
| ^~~~~~
main.cpp:24:47: error: 'b' has incomplete type
24 | segment MakeSegment(polong long a,polong long b){
| ~~~~~~~~~~~~^
main.cpp:6:8: note: forward declaration of 'struct polong'
6 | struct polong long { long long x,y; };
| ^~~~~~
main.cpp: In function 'segment MakeSegment(polong, polong)':
main.cpp:25:14: error: could not convert '{a, b}' from '<brace-enclosed initializer list>' to 'segment'
25 | return {a,b};
| ^
| |
| <brace-enclosed initializer list>
main.cpp: At global scope:
main.cpp:27:6: error: 'long' specified with 'bool'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !