Borderou de evaluare (job #666277)

Utilizator avatar AlexMorosanu Alex Morosanu AlexMorosanu IP ascuns
Problemă Trei cifre consecutive Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 oct. 2022 09:47:23 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:30:17: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] 30 | fscanf(f, "%d", &n); | ~^ ~~ | | | | | short int* | int* | %hd main.cpp:31:17: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] 31 | fscanf(f, "%d", &k); | ~^ ~~ | | | | | short int* | int* | %hd main.cpp:30:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 30 | fscanf(f, "%d", &n); | ~~~~~~^~~~~~~~~~~~~ main.cpp:31:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 31 | fscanf(f, "%d", &k); | ~~~~~~^~~~~~~~~~~~~ main.cpp:33:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | fscanf(f, "%d", &num[i]); | ~~~~~~^~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 118 kb Killed by Signal 11 0
2 1 ms 118 kb Killed by Signal 11 0
3 1 ms 118 kb Killed by Signal 11 0
4 1 ms 118 kb Killed by Signal 11 0
5 1 ms 118 kb Killed by Signal 11 0
6 1 ms 118 kb Killed by Signal 11 0
7 1 ms 118 kb Killed by Signal 11 0
8 1 ms 118 kb Killed by Signal 11 0
9 1 ms 118 kb Killed by Signal 11 0
10 1 ms 118 kb Killed by Signal 11 0
Punctaj total 0