Borderou de evaluare (job #1186479)
Utilizator | Data | 17 mai 2014 13:30:39 | |
---|---|---|---|
Problema | Distanta | Status | done |
Runda | ACM-ICPC Faza Nationala 2014-2015 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve(int, int, int, int)’:
user.cpp:12:5: error: ‘c2’ was not declared in this scope
c2 = cos(angle) * dist;
^
user.cpp:13:5: error: ‘d1’ was not declared in this scope
d1 = abs(x - (1 - y * b) / a);
^
user.cpp:8:33: warning: unused variable ‘c2d1’ [-Wunused-variable]
double oposite = 0,angle,c1,c2d1,d2,minim;
^
user.cpp: In function ‘void read()’:
user.cpp:22:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:25:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&a,&b,&x,&y);
^
user.cpp: In function ‘int main()’:
user.cpp:30:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("distanta.in","r",stdin);
^
user.cpp:31:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("distanta.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !