Borderou de evaluare (job #2296735)

Utilizator cahemanCasian Patrascanu caheman Data 4 decembrie 2018 23:17:16
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:74:28: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1005]' [-Wformat=] scanf("%s", &mat[i]); ^ main.cpp:218:29: error: 'y' was not declared in this scope if(viz[finish.x][finish[y] == 0) ^ main.cpp:218:36: error: expected ']' before ')' token if(viz[finish.x][finish[y] == 0) ^ main.cpp:70:11: warning: unused variable 'b' [-Wunused-variable] poz a,b, curent; ^ main.cpp:66:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.in", "r", stdin); ^ main.cpp:67:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.out", "w", stdout); ^ main.cpp:72:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &r, &col); ^ main.cpp:74:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &mat[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?