Borderou de evaluare (job #2657912)

Utilizator Senth30Denis-Florin Cringanu Senth30 Data 12 octombrie 2020 17:36:42
Problema Easygraph Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: expected initializer before 'long' long long ans; ^~~~ main.cpp: In function 'void read()': main.cpp:19:9: error: 'seen' was not declared in this scope seen[i] = 0; ^~~~ main.cpp:26:9: error: 'seen' was not declared in this scope seen[b]++; ^~~~ main.cpp:28:5: error: 'ans' was not declared in this scope ans = -1e15; ^~~ main.cpp: In function 'void dfs(int)': main.cpp:32:5: error: 'seen' was not declared in this scope seen[node]--; ^~~~ main.cpp: In function 'int main()': main.cpp:51:16: error: 'seen' was not declared in this scope if(seen[i] == 0) ^~~~ main.cpp:54:13: error: 'ans' was not declared in this scope ans = max(ans, ssm[i]); ^~~ main.cpp:55:26: error: 'ans' was not declared in this scope printf("%lld\n", ans); ^~~ main.cpp: In function 'void read()': main.cpp:15:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ main.cpp:17:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &val[i]); ^ main.cpp:24: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:44:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("easygraph.in", "r", stdin); ^ main.cpp:45:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("easygraph.out", "w", stdout); ^ main.cpp:47:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ Non zero exit status: 1

Ceva nu functioneaza?