Borderou de evaluare (job #2715442)

Utilizator bori2000Fazakas Borbala bori2000 Data 3 martie 2021 17:55:29
Problema Distractie Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'void Cell::visit(Cell*, Cell*)': main.cpp:40:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] } else if (topSongs == -1 || leftSongs != -1 && leftSongs < topSongs) { ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:42:96: error: 'memcpy' was not declared in this scope memcpy(this->possibleColors, left->possibleColors, sizeof(left->possibleColors)); ^ main.cpp:45:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] } else if (leftSongs == -1 || topSongs != -1 && topSongs < leftSongs) { ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:47:95: error: 'memcpy' was not declared in this scope memcpy(this->possibleColors, top->possibleColors, sizeof(left->possibleColors)); ^ main.cpp: In member function 'void Cell::setVisitData(int, const bool*)': main.cpp:69:71: error: 'memcpy' was not declared in this scope memcpy(this->possibleColors, newColors, sizeof(possibleColors)); ^ main.cpp: In function 'int main()': main.cpp:77:42: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d %d", &noRows, &noCols); ^ main.cpp:89:37: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &color); ^ Non zero exit status: 1

Ceva nu functioneaza?