Borderou de evaluare (job #1615309)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 26 februarie 2016 14:50:44
Problema Boom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:14:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] scanf("%d%d",&cost[i],&cam[i][0]); ^ user.cpp:17:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d",&cam[i][j]); ^ user.cpp: In function ‘void start_generating(const int&)’: user.cpp:26:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] cst[++cst[0]]=i; ^ user.cpp: In function ‘void dijkstra()’: user.cpp:106:55: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(unde[adj[j]]<=ps&&dist[nod]+cost[cst[j]]<dist[adj[j]]) ^ user.cpp:108:51: warning: array subscript has type ‘char’ [-Wchar-subscripts] dist[adj[j]]=dist[nod]+cost[cst[j]]; ^ user.cpp: In function ‘int main()’: user.cpp:129:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("boom.in","r",stdin); ^ user.cpp:130:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("boom.out","w",stdout); ^ user.cpp: In function ‘void read()’: user.cpp:11:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:14:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&cost[i],&cam[i][0]); ^ user.cpp:17:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&cam[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbJust perfect!10
20ms260kbKilled by signal 11(SIGSEGV).0
30ms280kbKilled by signal 11(SIGSEGV).0
40ms284kbKilled by signal 11(SIGSEGV).0
50ms480kbKilled by signal 11(SIGSEGV).0
64ms1836kbKilled by signal 11(SIGSEGV).0
712ms3364kbKilled by signal 11(SIGSEGV).0
820ms6428kbKilled by signal 11(SIGSEGV).0
944ms12564kbKilled by signal 11(SIGSEGV).0
1044ms12560kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?