Borderou de evaluare (job #3243047)

Utilizator User-77-Stancu Andreas User-77- Data 15 septembrie 2024 13:31:08
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:22:10: error: expected primary-expression before '>' token 22 | if(s=>minim*6 && s<=maxim*6) | ^ main.cpp:26:9: error: expected ',' or ';' before 'int' 26 | int y=0; | ^~~ main.cpp:31:17: error: 'y' was not declared in this scope 31 | y=(s-v[i]*6)*-1; | ^ main.cpp:35:17: error: 'y' was not declared in this scope 35 | y=s-v[i]*6; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression 39 | if(y<(s-x*6)*-1) | ^ main.cpp:4:7: note: 'int s' is not const 4 | int n,s,minim,maxim,i; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression 39 | if(y<(s-x*6)*-1) | ^ main.cpp:4:7: note: 'int s' is not const 4 | int n,s,minim,maxim,i; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression 39 | if(y<(s-x*6)*-1) | ^ main.cpp:4:7: note: 'int s' is not const 4 | int n,s,minim,maxim,i; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression 39 | if(y<(s-x*6)*-1) | ^ main.cpp:4:7: note: 'int s' is not const 4 | int n,s,minim,maxim,i; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression 39 | if(y<(s-x*6)*-1) | ^ main.cpp:4:7: note: 'int s' is not const 4 | int n,s,minim,maxim,i; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression 39 | if(y<(s-x*6)*-1) | ^ main.cpp:4:7: note: 'int s' is not const 4 | int n,s,minim,maxim,i; | ^ main.cpp:39:31: error: the value of 's' is not usable in a constant expression Non zero exit status: 1

Ceva nu functioneaza?