Pagini recente » Borderou de evaluare (job #2199945) | Borderou de evaluare (job #1653321) | Borderou de evaluare (job #1664841) | Borderou de evaluare (job #2360801) | Borderou de evaluare (job #2655611)
Borderou de evaluare (job #2655611)
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 |
1 | 2ms | 131kb | Corect | 10 |
2 | 2ms | 131kb | Corect | 10 |
3 | 3ms | 131kb | Corect | 10 |
4 | 3ms | 131kb | Corect | 10 |
5 | 3ms | 131kb | Corect | 10 |
6 | 177ms | 5632kb | Corect | 10 |
7 | 611ms | 11554kb | Corect | 10 |
8 | 68ms | 2359kb | Corect | 10 |
9 | 62ms | 2228kb | Corect | 10 |
10 | 334ms | 9297kb | Corect | 10 |
Punctaj total | 100 |