Borderou de evaluare (job #2279727)

Utilizator rares22iunieDoroftei Rares rares22iunie Data 9 noiembrie 2018 21:56:17
Problema Elicop Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 22

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:9:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=] scanf("%d %d",&n,&m); ^ main.cpp:9:24: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] main.cpp:12:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=] scanf("%d",&a[i][j]); ^ main.cpp:13:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=] scanf("%d",&k); ^ main.cpp:20:50: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=] scanf("%d %d %d %d %d",&l1,&c1,&l2,&c2,&p); ^ main.cpp:20:50: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] main.cpp:20:50: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long int*' [-Wformat=] main.cpp:20:50: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long int*' [-Wformat=] main.cpp:20:50: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'long int*' [-Wformat=] main.cpp:105:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] printf("%d\n%d ",s,r); ^ main.cpp:105:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] main.cpp:107:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] printf("%d ",v[i]); ^ main.cpp:7:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("elicop.in","r",stdin); ^ main.cpp:8:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("elicop.out","w",stdout); ^ main.cpp:9:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ main.cpp:12:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i][j]); ^ main.cpp:13:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^ main.cpp:20:51: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d %d",&l1,&c1,&l2,&c2,&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbLike a boss !10
22ms131kbTry again !0
32ms131kbTry again !0
43ms131kbValoare incorecta cerinta 1 !6
52ms131kbValoare incorecta cerinta 1 !6
63ms131kbTry again !0
74ms262kbTry again !0
84ms131kbTry again !0
95ms262kbTry again !0
105ms262kbTry again !0
Punctaj total22

Ceva nu functioneaza?