Borderou de evaluare (job #2414898)

Utilizator traiandobrinDobrin Traian traiandobrin Data 25 aprilie 2019 11:45:12
Problema Plaja2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:9: error: 'lim2' was not declared in this scope int x[5+lim2]; ^~~~ main.cpp:11:10: error: 'lim2' was not declared in this scope int ti[5+lim2]; ^~~~ main.cpp: In function 'int ad(int, int, int)': main.cpp:14:9: warning: unused variable 'p' [-Wunused-variable] int p=dif*t,c=dif,ca; ca=a; ^ main.cpp:14:17: warning: unused variable 'c' [-Wunused-variable] int p=dif*t,c=dif,ca; ca=a; ^ main.cpp: In function 'int main()': main.cpp:34:10: error: 'x' was not declared in this scope cin>>x[i]>>ti[i]; ^ main.cpp:34:16: error: 'ti' was not declared in this scope cin>>x[i]>>ti[i]; ^~ main.cpp:36:8: error: 'x' was not declared in this scope if(x[k]<n) ^ main.cpp:37:18: error: 'ti' was not declared in this scope x[k+1]=n,ti[k+1]=oo; ^~ main.cpp:36:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(x[k]<n) ^~ main.cpp:38:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(x[1]>1) ^~ main.cpp:38:12: error: 'x' was not declared in this scope if(x[1]>1) ^ main.cpp:40:33: error: 'ti' was not declared in this scope maxx=(x[1]-1)*t+ti[1]; ^~ main.cpp:44:26: error: 'x' was not declared in this scope maxx=max(maxx,ad(x[i+1]-x[i],ti[i],ti[i+1])); ^ main.cpp:44:38: error: 'ti' was not declared in this scope maxx=max(maxx,ad(x[i+1]-x[i],ti[i],ti[i+1])); ^~ main.cpp:30:22: warning: unused variable 'j' [-Wunused-variable] int n,k,i,maxx=0,j; ^ Non zero exit status: 1

Ceva nu functioneaza?