Borderou de evaluare (job #1480059)

Utilizator Marius7122FMI Ciltea Marian Marius7122 Data 2 septembrie 2015 00:13:27
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:35: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(f1,"%ld%ld%ld",&n,&m,&s); ^ user.cpp:14:35: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:14:35: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘int*’ [-Wformat=] user.cpp:17:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(f1,"%ld%ld",&x,&y); ^ user.cpp:17:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:24:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<graf[i].size();j++) ^ user.cpp:25:37: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ [-Wformat=] printf("%ld ",graf[i][j]); ^ user.cpp:42:36: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(f2,"%ld ",dist[i]-1); ^ user.cpp:14:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%ld%ld%ld",&n,&m,&s); ^ user.cpp:17:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%ld%ld",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1444kbOK10
20ms1448kbOK10
30ms1448kbOK10
48ms1516kbOK10
516ms1584kbOK10
676ms2176kbOK10
7212ms3308kbOK10
8192ms3260kbOK10
9Depăşit9096kbTime limit exceeded.0
10Depăşit8940kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?