Borderou de evaluare (job #1401075)

Utilizator Johny_Depp22Johnny Depp Johny_Depp22 Data 25 martie 2015 17:19:16
Problema Coco Chanel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:36:28: error: expected primary-expression before ‘,’ token scanf("%d", &b[i]);, mx=max(mx, b[i]); ^ user.cpp:36:43: error: ‘i’ was not declared in this scope scanf("%d", &b[i]);, mx=max(mx, b[i]); ^ user.cpp:31:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cocochanel.in", "r", stdin); ^ user.cpp:32:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cocochanel.out", "w", stdout); ^ user.cpp:33:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:34:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] FOR(i,1,N)scanf("%d", &a[i]); ^ user.cpp:36:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]);, mx=max(mx, b[i]); ^

Ceva nu functioneaza?