Borderou de evaluare (job #1789623)
Utilizator | Data | 27 octombrie 2016 11:48:42 | |
---|---|---|---|
Problema | Elicoptere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: declaration does not declare anything [-fpermissive]
int ;
^
user.cpp: In function ‘dreapta ecdr(int, int, int, int)’:
user.cpp:17:17: error: ‘y1’ cannot be used as a function
d.c=y1(x2-x1)-x1(y2-y1);
^
user.cpp:17:27: error: ‘x1’ cannot be used as a function
d.c=y1(x2-x1)-x1(y2-y1);
^
user.cpp: In function ‘int intersectie(triunghi, triunghi)’:
user.cpp:30:13: error: ‘j2’ was not declared in this scope
j2=(j+1)%3;
^
user.cpp:32:41: error: ‘j1’ was not declared in this scope
d=ecdr(B.x[j], B.y[j], B. x[j1], B.y[j1]);
^
user.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:44:17: error: ‘T’ was not declared in this scope
scanf("%d",&T);
^
user.cpp:45:20: error: ‘n’ was not declared in this scope
scanf("%d %d",&n,&k);
^
user.cpp:45:23: error: ‘k’ was not declared in this scope
scanf("%d %d",&n,&k);
^
user.cpp:48:19: error: ‘j’ was not declared in this scope
for(int i=j;j<=3;j++)
^
user.cpp:42:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("elicoptere.in","r",stdin);
^
user.cpp:43:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("elicoptere.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !