Borderou de evaluare (job #2376399)

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

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
12ms262kbIncorect0
22ms131kbIncorect0
32ms131kbOK5
42ms262kbIncorect0
52ms262kbIncorect0
63ms393kbIncorect0
73ms393kbIncorect0
83ms393kbIncorect0
93ms393kbIncorect0
103ms393kbIncorect0
112ms262kbKilled by Signal 110
122ms262kbKilled by Signal 110
132ms262kbKilled by Signal 110
143ms262kbKilled by Signal 110
152ms262kbKilled by Signal 110
162ms262kbKilled by Signal 110
173ms262kbKilled by Signal 110
183ms262kbKilled by Signal 110
193ms262kbKilled by Signal 110
203ms262kbKilled by Signal 110
Punctaj total5

Ceva nu functioneaza?