Pagini recente » Borderou de evaluare (job #61531) | Borderou de evaluare (job #775936) | Borderou de evaluare (job #1697769) | Borderou de evaluare (job #84212) | Borderou de evaluare (job #1213722)
Borderou de evaluare (job #1213722)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&t);
^
user.cpp:19:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:21:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
for (long i=1;i<=n;++i) scanf("%d",&a[i]);
^
user.cpp:35:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
if (nr>n/2) printf("%d\n",cand);
^
user.cpp: In function ‘void openIOFiles()’:
user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("avarcolaci.in","r",stdin);
^
user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("avarcolaci.out","w",stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:16:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:19:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:21:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (long i=1;i<=n;++i) scanf("%d",&a[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 244kb | OK | 10 |
| 2 | 0ms | 244kb | OK | 10 |
| 3 | 0ms | 252kb | OK | 10 |
| 4 | 0ms | 256kb | OK | 10 |
| 5 | 252ms | 624kb | OK | 10 |
| 6 | 348ms | 596kb | OK | 10 |
| 7 | 232ms | 592kb | OK | 10 |
| 8 | 348ms | 632kb | OK | 10 |
| 9 | 284ms | 2200kb | Incorect | 0 |
| 10 | 460ms | 2196kb | Wall time limit exceeded. | 0 |
| Punctaj total | 80 |