Borderou de evaluare (job #2431598)

Utilizator CharacterMeCharacter Me CharacterMe Data 20 iunie 2019 12:39:29
Problema Markon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

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
327ms12189kbOK!5
427ms12189kbRaspuns Gresit!0
528ms12189kbRaspuns Gresit!0
628ms12189kbOK!5
7192ms15597kbRaspuns Gresit!0
8328ms17956kbRaspuns Gresit!0
9459ms19529kbRaspuns Gresit!0
10609ms21364kbRaspuns Gresit!0
11732ms23330kbRaspuns Gresit!0
12746ms23855kbRaspuns Gresit!0
13752ms24510kbRaspuns Gresit!0
14787ms25165kbRaspuns Gresit!0
15785ms25952kbRaspuns Gresit!0
16803ms26607kbRaspuns Gresit!0
17816ms27262kbRaspuns Gresit!0
18836ms27918kbRaspuns Gresit!0
19881ms29753kbRaspuns Gresit!0
20914ms29097kbRaspuns Gresit!0
Punctaj total20

Ceva nu functioneaza?