Borderou de evaluare (job #2682731)
Utilizator | Data | 9 decembrie 2020 14:03:21 | |
---|---|---|---|
Problema | Plantatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:66: error: 'max' was not declared in this scope
a[i][j][k]=max(a[i][j][k-1],a[i][j+(1<<(k-1))][k-1]);
^
main.cpp:32:9: error: expected ';' before 'mx'
mx=max(a[i][j][p],a[i][j+k-(1<<p)][p]);
^~
main.cpp:33:16: error: 'max' was not declared in this scope
mx=max(max,a[i+k-(1<<p)][j][p]);
^~~
main.cpp:33:39: error: 'max' was not declared in this scope
mx=max(max,a[i+k-(1<<p)][j][p]);
^
main.cpp:33:39: error: redeclaration of '<typeprefixerror>max'
main.cpp:33:16: note: previous declaration '<typeprefixerror>max'
mx=max(max,a[i+k-(1<<p)][j][p]);
^~~
main.cpp:8:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("plantatie.in","r",stdin);
^
main.cpp:9:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("plantatie.out","w",stdout);
^
main.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
main.cpp:13:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&a[i][j][0]);
^
main.cpp:27:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&i,&j,&k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !