Borderou de evaluare (job #2376856)

Utilizator silviu982001Borsan Silviu silviu982001 Data 8 martie 2019 18:10:37
Problema Adapost Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:17:1: error: 'bitset' does not name a type bitset<SMAX> viz; ^~~~~~ main.cpp: In function 'bool cupleaza(int)': main.cpp:31:9: error: 'viz' was not declared in this scope if (viz[nod]) ^~~ main.cpp:33:5: error: 'viz' was not declared in this scope viz[nod] = 1; ^~~ main.cpp: In function 'bool cuplaj(long unsigned int)': main.cpp:47:29: error: 'memset' was not declared in this scope memset(ll, 0, sizeof(ll)); ^ main.cpp:51:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i <= poz; ++i) ~~^~~~~~ main.cpp:56:9: error: 'viz' was not declared in this scope viz.reset(); ^~~ main.cpp:57:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= n; ++i) ~~^~~~ main.cpp:66:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= n; ++i) ~~^~~~ main.cpp: In function 'void belmanFord()': main.cpp:73:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i <= D; ++i) ~~^~~~ main.cpp:78:5: error: 'bitset' was not declared in this scope bitset<NMAX> inQ; ^~~~~~ main.cpp:78:18: error: 'inQ' was not declared in this scope bitset<NMAX> inQ; ^~~ main.cpp: In function 'bool dijkastra()': main.cpp:105:27: error: 'memset' was not declared in this scope memset(p, 0, sizeof(p)); ^ main.cpp:143:46: error: 'memcpy' was not declared in this scope memcpy(oldDist, realDist, sizeof(oldDist)); ^ main.cpp:145:16: error: 'INT_MAX' was not declared in this scope int flow = INT_MAX; ^~~~~~~ main.cpp: In function 'int main()': main.cpp:167:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < n; ++i) ~~^~~ Non zero exit status: 1

Ceva nu functioneaza?