Borderou de evaluare (job #1925179)

Utilizator isav_costinVlad Costin Andrei isav_costin Data 12 martie 2017 15:58:29
Problema Trapez 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:65:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( i=1;i<=panta.size();i++ ) ^ user.cpp:70:13: error: ‘trp’ was not declared in this scope trp+=k*(k-1)/2; ^ user.cpp:74:19: error: ‘trp’ was not declared in this scope printf( "%d", trp ); ^ user.cpp:49:12: warning: unused variable ‘nr’ [-Wunused-variable] int n, nr=0, k=1, i, j; ^ user.cpp:46:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "trapez.in", "r", stdin ); ^ user.cpp:47:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "trapez.out", "w", stdout ); ^ user.cpp:51:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &n ); ^ user.cpp:54:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d%d", &v[i].x, &v[i].y ); ^

Ceva nu functioneaza?