Borderou de evaluare (job #1366849)

Utilizator dumitrubogdanDumitru Bogdan Mihai dumitrubogdan Data 1 martie 2015 14:09:31
Problema Fractii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void Afisare_Vector(int*, long int)’: user.cpp:11:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d - %s\n ",i, ( v[i]==-1 ? "NP" :"ESTE PRIM" ) ) ; ^ user.cpp: In function ‘int main()’: user.cpp:71:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&n); ^ user.cpp:96:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf(" S=%d ",S); ^ user.cpp:97:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d",S); ^ user.cpp:71:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit820kbTime limit exceeded.0
236ms460kbOk!10
3Depăşit464kbTime limit exceeded.0
4Depăşit484kbTime limit exceeded.0
5Depăşit680kbTime limit exceeded.0
6Depăşit908kbTime limit exceeded.0
7Depăşit1428kbTime limit exceeded.0
8Depăşit2344kbTime limit exceeded.0
9Depăşit3296kbTime limit exceeded.0
10Depăşit4328kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?