Borderou de evaluare (job #1152497)
Utilizator | Data | 24 martie 2014 19:25:37 | |
---|---|---|---|
Problema | Gaz | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:16: warning: integer constant is so large that it is unsigned [enabled by default]
memset(sol,val,sizeof(sol));
^
user.cpp: In function ‘int main()’:
user.cpp:17:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&v[i]);
^
user.cpp:20:31: warning: overflow in implicit constant conversion [-Woverflow]
memset(sol,val,sizeof(sol));
^
user.cpp:4:14: error: ‘a’ was not declared in this scope
#define min (a,b) (a<b?a:b)
^
user.cpp:27:20: note: in expansion of macro ‘min’
sol[i]=min(sol[j],nr*C+P);
^
user.cpp:4:16: error: ‘b’ was not declared in this scope
#define min (a,b) (a<b?a:b)
^
user.cpp:27:20: note: in expansion of macro ‘min’
sol[i]=min(sol[j],nr*C+P);
^
user.cpp:29:13: error: ‘count’ was not declared in this scope
count+=max(0LL, sum-v[j]-L);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !