Borderou de evaluare (job #2376394)

Utilizator aditzu7Adrian Capraru aditzu7 Data 8 martie 2019 15:21:04
Problema Scara 3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void dijkstra()': main.cpp:22:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<v[nod].size();i++) ~^~~~~~~~~~~~~~ main.cpp:22:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=0;i<v[nod].size();i++) ^~~ main.cpp:30:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' use[nod]=1; ^~~ main.cpp: In function 'int main()': main.cpp:44:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=0;i<=n;i++) ^~~ main.cpp:46:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' cost[0][1]=999000; ^~~~ main.cpp:66:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ main.cpp:82:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(i=1;i<=n;i++) ^~~ main.cpp:41:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("scara3.in","r",stdin); ^ main.cpp:42:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("scara3.out","w",stdout); ^ main.cpp:43:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:48:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&apa); ^ main.cpp:50:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&poz,&cnt); ^ main.cpp:60:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&ener); ^ main.cpp:62:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&poz,&cnt); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms524kbIncorect0
22ms131kbIncorect0
32ms262kbOK5
43ms393kbIncorect0
53ms393kbIncorect0
64ms786kbIncorect0
74ms786kbIncorect0
84ms786kbIncorect0
94ms786kbIncorect0
104ms786kbIncorect0
1124ms4587kbIncorect0
1224ms4587kbOK5
1324ms4587kbIncorect0
1411ms4751kbMemory limit exceeded0
1510ms4751kbMemory limit exceeded0
1611ms4751kbMemory limit exceeded0
1711ms4751kbMemory limit exceeded0
1811ms4751kbMemory limit exceeded0
1911ms4751kbMemory limit exceeded0
209ms4751kbMemory limit exceeded0
Punctaj total10

Ceva nu functioneaza?