Borderou de evaluare (job #598075)

Utilizator avatar Andrei_Icriverzi Andrei Icriverzi Andrei_Icriverzi IP ascuns
Problemă Cifre (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 14 mai 2021 19:26:23 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:29:25: error: expected primary-expression before '%' token 29 | if (cifre%2==0 %% stop!=1) | ^ main.cpp:37:25: error: expected primary-expression before '%' token 37 | if (cifre%2==1 %% stop!=1) | ^ main.cpp:47:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 47 | if (stop=0) | ~~~~^~ main.cpp:57:11: error: 'm10' was not declared in this scope; did you mean 'p10'? 57 | m=m10; | ^~~ | p10 main.cpp:66:25: error: expected primary-expression before '%' token 66 | if (cifre%2==0 %% stop!=1) | ^ main.cpp:74:25: error: expected primary-expression before '%' token 74 | if (cifre%2==1 %% stop!=1) | ^ main.cpp:82:15: error: expected ';' before '}' token 82 | m=m/10 | ^ | ; 83 | } | ~ main.cpp:84:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 84 | if (stop=0) | ~~~~^~ main.cpp:86:9: error: 'cout' was not declared in this scope 86 | cout << "1"; | ^~~~ main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | main.cpp:94:11: error: 'm10' was not declared in this scope; did you mean 'p10'? 94 | m=m10; | ^~~ | p10 main.cpp:103:25: error: expected primary-expression before '%' token 103 | if (cifre%2==0 %% stop!=1) | ^ main.cpp:111:25: error: expected primary-expression before '%' token 111 | if (cifre%2==1 %% stop!=1) | ^ main.cpp:119:15: error: expected ';' before '}' token 119 | x=x/10 | ^ | ;