Pagini recente » Borderou de evaluare (job #2538323) | Borderou de evaluare (job #1395269) | Borderou de evaluare (job #1011254) | Borderou de evaluare (job #16826) | Borderou de evaluare (job #1542073)
Borderou de evaluare (job #1542073)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:32:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if(poz>0&&poz<n)printf("%d",(b-val)/(n-poz));
^
user.cpp:34:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%d",b/n);
^
user.cpp:20:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{freopen("buget.in","r",stdin);
^
user.cpp:21:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("buget.out","w",stdout);
^
user.cpp:22:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%lld",&n,&b);
^
user.cpp:24:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{scanf("%d",&a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 268kb | OK | 10 |
3 | 0ms | 272kb | OK | 10 |
4 | 0ms | 276kb | OK | 10 |
5 | 0ms | 288kb | Incorect | 0 |
6 | 0ms | 288kb | Incorect | 0 |
7 | 20ms | 424kb | Incorect | 0 |
8 | 20ms | 428kb | Incorect | 0 |
9 | 44ms | 616kb | Incorect | 0 |
10 | 48ms | 624kb | Incorect | 0 |
Punctaj total | 40 |