Borderou de evaluare (job #2950752)
Utilizator | Data | 4 decembrie 2022 17:04:58 | |
---|---|---|---|
Problema | Camp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'point intersection(int, edge)':
main.cpp:19:17: error: 'INF' was not declared in this scope
19 | return {INF, INF};
| ^~~
main.cpp:19:25: error: could not convert '{<expression error>, INF}' from '<brace-enclosed initializer list>' to 'point'
19 | return {INF, INF};
| ^
| |
| <brace-enclosed initializer list>
main.cpp:22:13: warning: narrowing conversion of 'x' from 'int' to 'double' [-Wnarrowing]
22 | return {x, y};
| ^
main.cpp: In function 'int main()':
main.cpp:29:25: error: 'n' was not declared in this scope
29 | fscanf( fin, "%d", &n );
| ^
main.cpp:31:31: error: 'x' was not declared in this scope
31 | fscanf( fin, "%d%d", &x, &y );
| ^
main.cpp:31:35: error: 'y' was not declared in this scope
31 | fscanf( fin, "%d%d", &x, &y );
| ^
main.cpp:32:18: error: 'minX' was not declared in this scope
32 | if ( x < minX )
| ^~~~
main.cpp:33:23: error: 'cntMin' was not declared in this scope
33 | minX = x, cntMin = 1;
| ^~~~~~
main.cpp:35:13: error: 'cntMin' was not declared in this scope
35 | cntMin ++;
| ^~~~~~
main.cpp:36:18: error: 'maxX' was not declared in this scope
36 | if ( x > maxX )
| ^~~~
main.cpp:37:23: error: 'cntMax' was not declared in this scope
37 | maxX = x, cntMax = 1;
| ^~~~~~
main.cpp:39:13: error: 'cntMax' was not declared in this scope
39 | cntMax ++;
| ^~~~~~
main.cpp:43:5: error: 'sum' was not declared in this scope
43 | sum = 0;
| ^~~
main.cpp:44:10: error: 'cntMax' was not declared in this scope
44 | if ( cntMax >= 2 ) {
| ^~~~~~
main.cpp:45:16: error: expected primary-expression before ';' token
45 | sum += ;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !