Borderou de evaluare (job #2103021)

Utilizator dumitrescugeorgeGeorge Dumitrescu dumitrescugeorge Data 9 ianuarie 2018 18:20:02
Problema Distante Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int Check()’: user.cpp:34:69: error: no match for ‘operator[]’ (operand types are ‘int [50005]’ and ‘muchie’) else if(d[v[i].x] + v[i].c == d[v[i].y]||d[v[i].y]+v[i].c==d[v[i]].x]) ^ user.cpp:34:77: error: expected ‘)’ before ‘]’ token else if(d[v[i].x] + v[i].c == d[v[i].y]||d[v[i].y]+v[i].c==d[v[i]].x]) ^ user.cpp:34:77: error: expected primary-expression before ‘]’ token user.cpp:34:77: error: expected ‘;’ before ‘]’ token user.cpp: In function ‘void Read()’: user.cpp:53:17: warning: unused variable ‘x’ [-Wunused-variable] int x, y, c; ^ user.cpp:53:20: warning: unused variable ‘y’ [-Wunused-variable] int x, y, c; ^ user.cpp:53:23: warning: unused variable ‘c’ [-Wunused-variable] int x, y, c; ^ user.cpp:45:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:48:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &N, &M, &S); ^ user.cpp:50:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &d[j]); ^ user.cpp:55:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] &v[j].c); ^ user.cpp: In function ‘int main()’: user.cpp:65:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("distante.in", "r", stdin); ^ user.cpp:66:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("distante.out", "w", stdout); ^

Ceva nu functioneaza?