Borderou de evaluare (job #1750094)

Utilizator bogdanluncasubogdan bogdanluncasu Data 29 august 2016 16:37:27
Problema Algoritmul lui Euclid extins Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solution(int, int, int)’: user.cpp:19:4: error: ‘q’ was not declared in this scope q=a/b; ^ user.cpp:20:4: error: ‘r’ was not declared in this scope r=a%b; ^ user.cpp: In function ‘int euclid(int, int)’: user.cpp:7:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: 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("euclid3.in", "r", stdin); ^ user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("euclid3.out", "w", stdout); ^ user.cpp:37:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:39:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &x,&y,&z); ^

Ceva nu functioneaza?