Borderou de evaluare (job #2093436)

Utilizator VladGhetinaVlad Ghetina VladGhetina Data 23 decembrie 2017 17:58:21
Problema Cerc3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Read()’: user.cpp:23:21: warning: unused variable ‘r’ [-Wunused-variable] int i , x , y , r , t; ^ user.cpp: In function ‘void Sol2()’: user.cpp:47:30: error: ‘gcd’ was not declared in this scope t = gcd(a[i].x,a[i].y); ^ user.cpp: In function ‘void Read()’: user.cpp:25:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d" , &n ); ^ user.cpp:27:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d%d%d" , &a[i].x , &a[i].y , &a[i].r ); ^ user.cpp: In function ‘int main()’: user.cpp:61:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen (IN , "r" , stdin); ^ user.cpp:62:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen (OUT, "w" , stdout); ^

Ceva nu functioneaza?