Pagini recente » Borderou de evaluare (job #866818) | Borderou de evaluare (job #2054653) | Borderou de evaluare (job #235723) | Borderou de evaluare (job #682525) | Borderou de evaluare (job #1525323)
Borderou de evaluare (job #1525323)
Raport evaluator
Compilare:
user.cpp:8:16: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
long long inf=1<<32-2;
^
user.cpp: In function ‘int main()’:
user.cpp:26:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:41:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("Consumul minim = %d\n",sol);
^
user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calatorie.in","r",stdin);
^
user.cpp:21:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calatorie.out","w",stdout);
^
user.cpp:22:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&t);
^
user.cpp:26:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:27:64: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(int i=1; i<n; i++) scanf("%lld %lld",&nk[i],&hk[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 668kb | Incorect | 0 |
Punctaj total | 0 |