Borderou de evaluare (job #1462527)

Utilizator theprdvtheprdv theprdv Data 18 iulie 2015 14:06:22
Problema Take 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int find(int)’: user.cpp:19:15: error: return-statement with no value, in function returning ‘int’ [-fpermissive] if (key < 0) return; ^ user.cpp: In function ‘int main()’: user.cpp:37:18: warning: unused variable ‘key’ [-Wunused-variable] for (int i = 1, key; i <= N; ++i){ ^ user.cpp:33:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("take5.in", "r", stdin); ^ user.cpp:34:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("take5.out", "w", stdout); ^ user.cpp:36:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %llu", &N, &S); ^ user.cpp:38:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^

Ceva nu functioneaza?