Borderou de evaluare (job #604633)

Utilizator avatar VladNegut Vlad Negut VladNegut IP ascuns
Problemă Subsecvență crescătoare (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 25 aug. 2021 13:50:46 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:10:20: warning: format '%d' expects a matching 'int*' argument [-Wformat=] 10 | fscanf(in, "%d%d", &n); | ~^ | | | int* main.cpp:8:9: warning: unused variable 'h' [-Wunused-variable] 8 | int h,n,i,x,c1,c2,sr=1,s=0,fx; | ^ main.cpp:8:17: warning: unused variable 'c1' [-Wunused-variable] 8 | int h,n,i,x,c1,c2,sr=1,s=0,fx; | ^~ main.cpp:8:20: warning: unused variable 'c2' [-Wunused-variable] 8 | int h,n,i,x,c1,c2,sr=1,s=0,fx; | ^~ main.cpp:9:9: warning: unused variable 'ok' [-Wunused-variable] 9 | int ok=0; | ^~ main.cpp:10:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(in, "%d%d", &n); | ~~~~~~^~~~~~~~~~~~~~~~ main.cpp:13:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | fscanf(in, "%d", &x); | ~~~~~~^~~~~~~~~~~~~~ main.cpp:14:9: warning: 'fx' may be used uninitialized in this function [-Wmaybe-uninitialized] 14 | if(fx<x){ | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb Killed by Signal 11 0
2 1 ms 131 kb Killed by Signal 11 0
3 1 ms 131 kb Killed by Signal 11 0
4 1 ms 131 kb Killed by Signal 11 0
5 1 ms 131 kb Killed by Signal 11 0
6 1 ms 131 kb Killed by Signal 11 0
7 1 ms 131 kb Killed by Signal 11 0
8 2 ms 131 kb Killed by Signal 11 0
9 1 ms 131 kb Killed by Signal 11 0
10 1 ms 131 kb Killed by Signal 11 0
Punctaj total 0