Borderou de evaluare (job #2842790)
Utilizator | Data | 1 februarie 2022 15:17:33 | |
---|---|---|---|
Problema | Permutari | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Koch(int, int, float, int, int, int)':
main.cpp:7:11: error: 'sqrt' was not declared in this scope
7 | int d=sqrt((x1-xn)*(x1-xn)))
| ^~~~
main.cpp:9:11: error: 'sin' was not declared in this scope
9 | int y2=y1+sin(alfa)*d;
| ^~~
main.cpp:10:8: error: 'x2' was not declared in this scope; did you mean 'x3'?
10 | int x3=x2+cos(alfa+pi/3)*d;
| ^~
| x3
main.cpp:10:11: error: 'cos' was not declared in this scope
10 | int x3=x2+cos(alfa+pi/3)*d;
| ^~~
main.cpp:21:1: error: a function-definition is not allowed here before '{' token
21 | {
| ^
main.cpp:26:1: error: 'nt' was not declared in this scope; did you mean 'n'?
26 | nt yn,int n)
| ^~
| n
main.cpp:10:5: warning: unused variable 'x3' [-Wunused-variable]
10 | int x3=x2+cos(alfa+pi/3)*d;
| ^~
main.cpp:11:5: warning: unused variable 'y3' [-Wunused-variable]
11 | int y3=y2+sin(alfa+pi/3)*d;
| ^~
main.cpp:13:5: warning: unused variable 'x4' [-Wunused-variable]
13 | int x4 = x2 + d*cos(alfa);
| ^~
main.cpp:14:5: warning: unused variable 'y4' [-Wunused-variable]
14 | int y4 = y2 + d*sin(alfa);
| ^~
main.cpp:17:5: warning: unused variable 'x5' [-Wunused-variable]
17 | int x5 = xn;
| ^~
main.cpp:18:5: warning: unused variable 'y5' [-Wunused-variable]
18 | int y5 = yn;
| ^~
main.cpp:27:1: error: expected '}' at end of input
27 | {
| ^
main.cpp:6:1: note: to match this '{'
6 | {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !