Borderou de evaluare (job #2376487)
Utilizator | Data | 8 martie 2019 15:56:58 | |
---|---|---|---|
Problema | Reuniune | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void perimetru()':
main.cpp:9:14: error: 'INT_MAX' was not declared in this scope
int lmin=INT_MAX,lmax=INT_MIN,dmin=INT_MAX,dmax=INT_MIN;
^~~~~~~
main.cpp:13:9: error: 'lmax' was not declared in this scope
lmax=max(lmax,v[i]);
^~~~
main.cpp:17:9: error: 'dmin' was not declared in this scope
dmin=min(dmin,v[i]);
^~~~
main.cpp:18:9: error: 'dmax' was not declared in this scope
dmax=max(dmax,v[i]);
^~~~
main.cpp:20:23: error: 'lmax' was not declared in this scope
long long ans=abs(lmax-lmin)+abs(dmax-dmin);
^~~~
main.cpp:20:38: error: 'dmax' was not declared in this scope
long long ans=abs(lmax-lmin)+abs(dmax-dmin);
^~~~
main.cpp:20:43: error: 'dmin' was not declared in this scope
long long ans=abs(lmax-lmin)+abs(dmax-dmin);
^~~~
main.cpp: In function 'int main()':
main.cpp:56:9: warning: unused variable 'n' [-Wunused-variable]
int n,i;
^
main.cpp:54:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("reuniune.in","r",stdin);
^
main.cpp:55:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("reuniune.out","w",stdout);
^
main.cpp:58:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !