Borderou de evaluare (job #757005)

Utilizator avatar matei_matei Diaconu Matei matei_matei IP ascuns
Problemă Char (clasa a 7-a) Compilator c-32
Rundă Tema 16 clasa a 7-a Status evaluat
Dată 22 ian. 2024 18:01:32 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:24:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'char *' [-Wformat=] 24 | fscanf(fin, "%d", &p[j]); | ~^ ~~~~~ | | | | | char * | int * | %hhd main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d ", &n); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:17:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin, "%d", &h); | ^~~~~~~~~~~~~~~~~~~~~ main.c:24:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(fin, "%d", &p[j]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:30:14: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized] 30 | q+=f[j]; | ~^~~~~~ main.c:9:21: note: 'q' was declared here 9 | int n, h, i, j, q, maxx, m, u, st, dr; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 241 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100