Borderou de evaluare (job #2589826)

Utilizator Senth30Denis-Florin Cringanu Senth30 Data 26 martie 2020 22:38:25
Problema Taramul Nicaieri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void read()': main.cpp:22:9: error: 'ans' was not declared in this scope ans += a; ^~~ main.cpp: In function 'bool bellman_ford()': main.cpp:44:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < edges[node].size(); i++){ ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:58:5: error: 'ans' was not declared in this scope ans += x; ^~~ main.cpp: In function 'int main()': main.cpp:83:20: error: 'ans' was not declared in this scope printf("%d\n", ans); ^~~ main.cpp: In function 'void read()': main.cpp:18:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ main.cpp:21:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^ main.cpp: In function 'int main()': main.cpp:69:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("harta.in", "r", stdin); ^ main.cpp:70:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("harta.out", "w", stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?