Pagini recente » Borderou de evaluare (job #2733495) | Borderou de evaluare (job #1640504) | Borderou de evaluare (job #1360839) | Borderou de evaluare (job #958535) | Borderou de evaluare (job #1421834)
Borderou de evaluare (job #1421834)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for (int i = 1;i <= n;++i) scanf("%d",a+i),mn = min(mn,a[i]);
^
user.cpp:18:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for (int i = 1;i <= m;++i) scanf("%d",b+i),mx = max(mx,b[i]);
^
user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prietenie3.in","r",stdin);
^
user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:16:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:17:69: 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("%d",a+i),mn = min(mn,a[i]);
^
user.cpp:18:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1;i <= m;++i) scanf("%d",b+i),mx = max(mx,b[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 360ms | 3572kb | OK | 100 |
Punctaj total | 100 |