Borderou de evaluare (job #2655611)

Utilizator akumariaPatrascanu Andra-Maria akumaria Data 4 octombrie 2020 22:19:58
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void add_to_apm(int)': main.cpp:17:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<arcs[x].size(); ++i) { ~^~~~~~~~~~~~~~~ main.cpp: In function 'void delete_node(int)': main.cpp:75:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (! heapSize) ^~ main.cpp:77:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' poz[heap[current_node]] = -1; ^~~ main.cpp: In function 'int main()': main.cpp:122:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j<arcs[a].size(); ++j) ~^~~~~~~~~~~~~~~ main.cpp:127:39: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<std::pair<int, int> >::size_type {aka long unsigned int}' [-Wformat=] printf("%d\n%d\n", c, usedArcs.size()); ^ main.cpp:128:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<usedArcs.size(); ++i) ~^~~~~~~~~~~~~~~~ main.cpp:91:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("apm.in", "r", stdin); ^ main.cpp:92:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("apm.out", "w", stdout); ^ main.cpp:95:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ main.cpp:103:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &a, &b, &c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbCorect10
22ms131kbCorect10
33ms131kbCorect10
43ms131kbCorect10
53ms131kbCorect10
6177ms5632kbCorect10
7611ms11554kbCorect10
868ms2359kbCorect10
962ms2228kbCorect10
10334ms9297kbCorect10
Punctaj total100

Ceva nu functioneaza?