Borderou de evaluare (job #1336285)

Utilizator ade_tomiEnache Adelina ade_tomi Data 7 februarie 2015 15:13:22
Problema Expresie 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:7:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp: At global scope: user.cpp:29:117: error: expected declaration before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:5:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("expresie.in","r",stdin); ^ user.cpp:6:47: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("expresie.out","w",stdout); ^ user.cpp:7:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:10:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&v[i]); ^

Ceva nu functioneaza?