Borderou de evaluare (job #1501327)

Utilizator tudormaximTudor Maxim tudormaxim Data 13 octombrie 2015 11:48:35
Problema Segmente2 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:45:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=] printf("%d\n", *it);*/ ^ user.cpp:45:30: error: expected primary-expression before ‘/’ token printf("%d\n", *it);*/ ^ user.cpp:46:5: error: expected primary-expression before ‘return’ return 0; ^ user.cpp:46:5: error: expected ‘;’ before ‘return’ user.cpp:21:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("segmente2.in", "r", stdin); ^ user.cpp:22:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("segmente2.out", "w", stdout); ^ user.cpp:25:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &k); ^ user.cpp:28:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf", &v[i].x, &v[i].y); ^

Ceva nu functioneaza?