Borderou de evaluare (job #2418072)

Utilizator RobertLearnsCDragomir Robert. RobertLearnsC Data 3 mai 2019 14:26:49
Problema Dif2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:14:26: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%lld",&cerinta); ^ main.cpp:21:25: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%lld", &n); ^ main.cpp:25:35: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%lld", &element); ^ main.cpp:44:35: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=] scanf("%lld", &v[i]); ^ main.cpp:11:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dif2.in","r",stdin); ^ main.cpp:12:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dif2.out","w",stdout); ^ main.cpp:14:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&cerinta); ^ main.cpp:21:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &n); ^ main.cpp:25:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &element); ^ main.cpp:44:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &v[i]); ^ main.cpp:107:27: warning: 'n1' may be used uninitialized in this function [-Wmaybe-uninitialized] long long n3 = n1 - n2; ~~~^~~~ main.cpp:107:27: warning: 'n2' may be used uninitialized in this function [-Wmaybe-uninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
1109ms131kbOK5
288ms131kbOK5
362ms131kbOK5
463ms131kbOK5
586ms131kbOK5
62ms131kbOK5
72ms131kbOK5
854ms262kbOK5
963ms262kbOK5
1017ms131kbOK5
1173ms262kbOK5
12703ms262kbTime limit exceeded0
13700ms262kbTime limit exceeded0
14195ms917kbIncorect0
15304ms1310kbIncorect0
1698ms917kbIncorect0
17139ms1310kbIncorect0
18250ms1179kbIncorect0
1997ms786kbIncorect0
2038ms131kbOK5
Punctaj total60

Ceva nu functioneaza?