Borderou de evaluare (job #2444868)

Utilizator Vaida_Radu_AndreiVaida Radu Andrei Vaida_Radu_Andrei Data 1 august 2019 17:01:29
Problema Euclid1 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void gcd(long long int, long long int)': main.cpp:25:12: error: return-statement with a value, in function returning 'void' [-fpermissive] return x; ^ main.cpp: In function 'long long int cmmdc(long long int, long long int)': main.cpp:30:23: error: void value not ignored as it ought to be return gcd(x,y); ^ main.cpp: In function 'void update()': main.cpp:53:18: error: 'pn2' was not declared in this scope clearCache(0,pn2,l[0],l[1]); ^~~ main.cpp: In function 'void cache(long long int, long long int, long long int)': main.cpp:64:29: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] cache(f-p2,p2,poz<<1+1); ~^~ main.cpp:65:30: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] v[f+poz]=cmmdc(v[f-p2+poz<<1],v[f-p2+poz<<1+1]); ~~~~^~~~ main.cpp:65:45: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] v[f+poz]=cmmdc(v[f-p2+poz<<1],v[f-p2+poz<<1+1]); ~~~~^~~~ main.cpp: In function 'void display()': main.cpp:91:28: error: 'pn2' was not declared in this scope printf("%lld\n",calc(0,pn2,l[0],l[1])); ^~~ main.cpp: In function 'void cit(long long int&)': main.cpp:98:5: error: 'pn2' was not declared in this scope pn2=fnd2(n); ^~~ main.cpp: In function 'void update()': main.cpp:49:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&l[i]),--l[i]; ^ main.cpp:50:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&k); ^ main.cpp: In function 'long long int calc(long long int, long long int, long long int, long long int)': main.cpp:84:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.cpp: In function 'void display()': main.cpp:89:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&l[i]); ^ main.cpp: In function 'void cit(long long int&)': main.cpp:97:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld",&n,&q); ^ main.cpp:100:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] Non zero exit status: 1

Ceva nu functioneaza?