Borderou de evaluare (job #2092428)

Utilizator inquisitorAnders inquisitor Data 21 decembrie 2017 17:56:12
Problema Permut 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:14:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &N); ^ user.cpp:16:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(int i = 0; i < N; i++) scanf("%d", &A[i]); sort(A, A + N); ^ user.cpp:17:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(int i = 0; i < N; i++) scanf("%d", &B[i]); sort(B, B + N); ^ user.cpp:19:32: error: ‘result’ was not declared in this scope for(int i = 0; i < N; i++) result += A[i] * B[i]; ^ user.cpp:21:20: error: ‘result’ was not declared in this scope printf("%lld", result); ^ user.cpp:11:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("permut.in", "r", stdin); ^ user.cpp:12:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("permut.out", "w", stdout); ^ user.cpp:14:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:16:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 0; i < N; i++) scanf("%d", &A[i]); sort(A, A + N); ^ user.cpp:17:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 0; i < N; i++) scanf("%d", &B[i]); sort(B, B + N); ^

Ceva nu functioneaza?