Borderou de evaluare (job #2431452)

Utilizator CharacterMeCharacter Me CharacterMe Data 19 iunie 2019 15:49:28
Problema Markon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:23:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1; i<=N; ++i) Val[i]-=Graph[i][0]; Out[++Sol]=Start; ^~~ main.cpp:23:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(i=1; i<=N; ++i) Val[i]-=Graph[i][0]; Out[++Sol]=Start; ^~~ main.cpp:24:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(Good[Start]==true || Val[Start]>0) Q.push(Start); Mark[Start]=InQ[Start]=true; ^~ main.cpp:24:58: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(Good[Start]==true || Val[Start]>0) Q.push(Start); Mark[Start]=InQ[Start]=true; ^~~~ main.cpp:11:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("markon.in", "r", stdin); ^ main.cpp:12:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("markon.out", "w", stdout); ^ main.cpp:13:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &N, &M, &Start); ^ main.cpp:14:68: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for(i=1; i<=N; ++i){Graph[i].push_back(0); scanf("%d", &Val[i]); if(Val[i]==0) Good[i]=true;} ^ main.cpp:17:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
127ms12189kbOK!5
227ms12189kbOK!5
327ms12189kbRaspuns Gresit!0
427ms12189kbRaspuns Gresit!0
528ms12189kbRaspuns Gresit!0
628ms12189kbRaspuns Gresit!0
7187ms15597kbRaspuns Gresit!0
8316ms17825kbRaspuns Gresit!0
9471ms19529kbRaspuns Gresit!0
10608ms21229kbRaspuns Gresit!0
11732ms23199kbRaspuns Gresit!0
12755ms23724kbRaspuns Gresit!0
13778ms24248kbRaspuns Gresit!0
14788ms24903kbRaspuns Gresit!0
15806ms25690kbRaspuns Gresit!0
16808ms26345kbRaspuns Gresit!0
17828ms27131kbRaspuns Gresit!0
18829ms27787kbRaspuns Gresit!0
19910ms29753kbRaspuns Gresit!0
20920ms28966kbRaspuns Gresit!0
Punctaj total10

Ceva nu functioneaza?