Pagini recente » Borderou de evaluare (job #3234227) | Borderou de evaluare (job #3253247) | Borderou de evaluare (job #3145627) | Borderou de evaluare (job #3278687) | Borderou de evaluare (job #2603236)
Borderou de evaluare (job #2603236)
Raport evaluator
Compilare:
main.cpp: In function 'std::vector<node*> mergeHeaps(std::vector<node*>&, std::vector<node*>&)':
main.cpp:34:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos1 < h1.size() or pos2 < h2.size()) {
~~~~~^~~~~~~~~~~
main.cpp:34:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pos1 < h1.size() or pos2 < h2.size()) {
~~~~~^~~~~~~~~~~
main.cpp:35:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pos1 == h1.size()) {
~~~~~^~~~~~~~~~~~
main.cpp:39:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (pos2 == h2.size()) {
~~~~~^~~~~~~~~~~~
main.cpp:56:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < newH.size(); ++i)
~~^~~~~~~~~~~~~
main.cpp: In function 'node* getMin(std::vector<node*>&)':
main.cpp:78:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < h.size(); ++i)
~~^~~~~~~~~~
main.cpp: In function 'void deleteMin(std::vector<node*>&)':
main.cpp:104:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < h.size(); ++i)
~~^~~~~~~~~~
main.cpp: In function 'void removeNodeFromHeap(std::vector<node*>&, node*)':
main.cpp:120:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < h.size(); ++i)
~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:150:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.in","r",stdin);
^
main.cpp:151:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("heapuri.out","w",stdout);
^
main.cpp:153:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:157:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&cod);
^
main.cpp:159:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
main.cpp:164:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 8ms | 131kb | OK | 10 | 10 |
4 | 173ms | 262kb | OK | 10 | 10 |
5 | 5ms | 131kb | OK | 10 | 0 |
6 | 252ms | 655kb | Time limit exceeded | 0 |
7 | 251ms | 4456kb | Time limit exceeded | 0 |
8 | 252ms | 3407kb | Time limit exceeded | 0 |
9 | 252ms | 917kb | Time limit exceeded | 0 |
10 | 251ms | 917kb | Time limit exceeded | 0 |
Punctaj total | 40 |