Borderou de evaluare (job #1526335)

Utilizator DanBrezeanuBrezeanu Dan DanBrezeanu Data 16 noiembrie 2015 09:35:39
Problema Immortal Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul II Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:9: error: macro names must be identifiers #define "DANUT" "EU AM BANI!" ^ user.cpp: In function ‘void copy_matrix()’: user.cpp:33:3: error: ‘x’ was not declared in this scope a[x][y]= 0; ^ user.cpp:33:6: error: ‘y’ was not declared in this scope a[x][y]= 0; ^ user.cpp: In function ‘int main()’: user.cpp:82:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("immortal.in","r",stdin); ^ user.cpp:83:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("immortal.out","w",stdout); ^ user.cpp:87:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&m,&I); ^ user.cpp:91:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); ^

Ceva nu functioneaza?