Borderou de evaluare (job #1321093)
Utilizator | Data | 18 ianuarie 2015 19:27:33 | |
---|---|---|---|
Problema | Sarac Sau Rege | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:10:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d",&m);
^
user.cpp:11:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
for (i=0;i<n;i++) scanf("%d",&M[i][0]);
^
user.cpp:13:17: error: ‘V’ was not declared in this scope
M[i][0]=V[i];
^
user.cpp:35:39: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
else cout<<max(M[s-1][j],M[d-1-1<<j][j])<<'\n';
^
user.cpp:7:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("saracsaurege.in","r",stdin);
^
user.cpp:8:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("saracsaurege.out","w",stdout);
^
user.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:11:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=0;i<n;i++) scanf("%d",&M[i][0]);
^
user.cpp:24:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&s);
^
user.cpp:25:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&d);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !