Borderou de evaluare (job #2673087)

Utilizator BereaBerendea Andrei Berea Data 15 noiembrie 2020 19:00:50
Problema Cerere Status done
Runda ursus_retro_fara_alcool Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:18:10: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' get(n); ^ main.cpp:11:6: note: initializing argument 1 of 'void get(int&)' void get(int & x); ^~~ main.cpp:19:31: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' for (i=1;i<=n;i++) get(v[i]); ~~~^ main.cpp:11:6: note: initializing argument 1 of 'void get(int&)' void get(int & x); ^~~ main.cpp:23:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' get(x); ^ main.cpp:11:6: note: initializing argument 1 of 'void get(int&)' void get(int & x); ^~~ main.cpp:24:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int' get(y); ^ main.cpp:11:6: note: initializing argument 1 of 'void get(int&)' void get(int & x); ^~~ main.cpp:15:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cerere.in","r",stdin); ^ main.cpp: In function 'void next()': main.cpp:53:49: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] if (r++==limit) fread(sir,1,limit,stdin),r=0; ^ Non zero exit status: 1

Ceva nu functioneaza?