Borderou de evaluare (job #2822513)

Utilizator OrzataAndreiOrzata Andrei OrzataAndrei Data 24 decembrie 2021 01:30:25
Problema Critice Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int BFS1()': main.cpp:36:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 36 | for (int i = 0; i < G[x].size(); i++) | ~~^~~~~~~~~~~~~ main.cpp: In function 'void DFS(int, int*)': main.cpp:49:29: warning: 'sizeof' on array function parameter 'visited' will return size of 'int*' [-Wsizeof-array-argument] 49 | memset(visited,0,sizeof(visited)); | ~^~~~~~~~ main.cpp:47:23: note: declared here 47 | void DFS(int node,int visited[]) | ~~~~^~~~~~~~~ main.cpp:49:22: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 49 | memset(visited,0,sizeof(visited)); | ^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:115:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 115 | if(visited1[x]&& visited2[y]&&c[x][y]==f[x][y]|| visited1[y] && visited2[x]&&c[y][x]==f[y][x]) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:119:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 119 | for (i = 0; i <ANS.size(); i++) | ~~^~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOkay!10
22ms184kbOkay!10
32ms262kbOkay!10
42ms184kbOkay!10
56ms4657kbOkay!10
611ms4845kbOkay!10
725ms7188kbToo bad!0
821ms5484kbOkay!10
940ms5373kbToo bad!0
1020ms6778kbOkay!10
Punctaj total80

Ceva nu functioneaza?