Borderou de evaluare (job #1883025)

Utilizator ASTELOTudor Enescu ASTELO Data 17 februarie 2017 17:46:30
Problema Propozitie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d\n",&n,&k); ^ user.cpp:9:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:25:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",v[m-1]); ^ user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("propozitie.in","r",stdin); ^ user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("propozitie.out","w",stdout); ^ user.cpp:9:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&n,&k); ^ user.cpp:10:8: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cco4e0fY.o: In function `main': user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms288kbOK10
20ms288kbIncorect0
30ms284kbIncorect0
40ms284kbIncorect0
50ms284kbIncorect0
6216ms764kbIncorect0
7Depăşit848kbTime limit exceeded.0
8304ms956kbIncorect0
9Depăşit896kbTime limit exceeded.0
10Depăşit1064kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?