Borderou de evaluare (job #1663050)
Utilizator | Data | 25 martie 2016 14:56:50 | |
---|---|---|---|
Problema | Lungimi de interval | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void rez()’:
user.cpp:22:37: warning: too many arguments for format [-Wformat-extra-args]
scanf("%d",&aux.x,&aux.y);
^
user.cpp:26:5: error: expected ‘;’ before ‘int’
int st=A[0].x,dr=A[0].y;
^
user.cpp:27:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<A.size();i++)
^
user.cpp:28:15: error: ‘dr’ was not declared in this scope
if(A[i].x<dr and A[i].y>dr)
^
user.cpp:32:15: error: ‘st’ was not declared in this scope
S+=dr-st;
^
user.cpp:36:8: error: ‘dr’ was not declared in this scope
S+=dr-st;
^
user.cpp:36:11: error: ‘st’ was not declared in this scope
S+=dr-st;
^
user.cpp: In function ‘void citire()’:
user.cpp:10:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("linterv.int","st",stdin);
^
user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("linterv.out","st",stdout);
^
user.cpp:12:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp: In function ‘void rez()’:
user.cpp:19:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:22:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&aux.x,&aux.y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !