Saldainių dalybos

Taškai: 0

Compile: FAIL

saldainiai.cpp: In function ‘int main()’: saldainiai.cpp:28:30: error: ‘x’ was not declared in this scope 28 | for(int j = MAXSUM - x; j >= 0; j--){ | ^ saldainiai.cpp:35:13: error: expected unqualified-id before ‘=’ token 35 | for(int = s/2; i >= 0; i--){ | ^ saldainiai.cpp:35:12: error: expected ‘;’ before ‘=’ token 35 | for(int = s/2; i >= 0; i--){ | ^~ | ; saldainiai.cpp:35:13: error: expected primary-expression before ‘=’ token 35 | for(int = s/2; i >= 0; i--){ | ^ saldainiai.cpp:35:15: error: ‘s’ was not declared in this scope 35 | for(int = s/2; i >= 0; i--){ | ^ saldainiai.cpp:35:20: error: ‘i’ was not declared in this scope 35 | for(int = s/2; i >= 0; i--){ | ^ saldainiai.cpp:35:26: error: expected ‘)’ before ‘;’ token 35 | for(int = s/2; i >= 0; i--){ | ~ ^ | ) saldainiai.cpp:35:28: error: ‘i’ was not declared in this scope 35 | for(int = s/2; i >= 0; i--){ | ^

nr.resulttimemessage