Borderou de evaluare (job #615508)

Utilizator avatar matthriscu Matei Hriscu matthriscu IP ascuns
Problemă Permfix Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 10 nov. 2021 23:37:32 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:6:64: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 6 | int n, k, q, st[10], as, ev, i, nrsol, cnt = 1, *a = (int*)malloc(sizeof(int)*133500); | ^~~~~~ main.c:6:64: warning: incompatible implicit declaration of built-in function 'malloc' main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc' 1 | #include <stdio.h> +++ |+#include <stdlib.h> 2 | main.c:4:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 4 | freopen("permfix.in", "r", stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:5:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 5 | freopen("permfix.out", "w", stdout); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:7:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | scanf("%d%d", &n, &q); | ^~~~~~~~~~~~~~~~~~~~~ main.c:9:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf("%d", &a[i]); | ^~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb OK 10
2 1 ms 131 kb OK 10
3 1 ms 131 kb OK 10
4 1 ms 131 kb OK 10
5 1 ms 131 kb OK 10
6 1 ms 131 kb OK 10
7 1 ms 131 kb OK 10
8 2 ms 131 kb OK 10
9 40 ms 131 kb OK 10
10 58 ms 131 kb OK 10
Punctaj total 100