Borderou de evaluare (job #2320082)
Utilizator | Florin Gheorghe cyg_SerbanB | Data | 14 ianuarie 2019 10:39:57 |
---|---|---|---|
Problema | Joctv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:9: error: redeclaration of 'int ans'
int ans=sp[1][1];
^~~
main.cpp:10:21: note: 'int ans' previously declared here
int n,m,i,j,k,l,ans;
^~~
main.cpp:24:84: error: 'max' was not declared in this scope
ans=max(ans,sp[x2][y2]-sp[x2][y1-1]-sp[x1-1][y1]+sp[x1-1][y1-1]);
^
main.cpp:10:11: warning: unused variable 'm' [-Wunused-variable]
int n,m,i,j,k,l,ans;
^
main.cpp:10:17: warning: unused variable 'k' [-Wunused-variable]
int n,m,i,j,k,l,ans;
^
main.cpp:10:19: warning: unused variable 'l' [-Wunused-variable]
int n,m,i,j,k,l,ans;
^
main.cpp:8:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("joctv.in","r",stdin);
^
main.cpp:9:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("joctv.out","w",stdout);
^
main.cpp:11:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:15:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&mat[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !