Borderou de evaluare (job #706610)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Triunghiurile de 5 bani (clasa a 5-a) | Compilator | cpp-32 |
Rundă | superoji1 | Status | evaluat |
Dată | 13 mar. 2023 22:31:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:9: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
12 | if ((n>1) && (n<=10000) {
| ^
main.cpp:12:28: error: expected ';' before '{' token
12 | if ((n>1) && (n<=10000) {
| ^~
| ;
main.cpp:12:15: warning: statement has no effect [-Wunused-value]
12 | if ((n>1) && (n<=10000) {
| ~~~~~~^~~~~~~~~~~~~
main.cpp:25:5: error: expected primary-expression before 'return'
25 | return 0;
| ^~~~~~
main.cpp:24:7: error: expected ')' before 'return'
24 | };
| ^
| )
25 | return 0;
| ~~~~~~
main.cpp:12:8: note: to match this '('
12 | if ((n>1) && (n<=10000) {
| ^
main.cpp:10:11: warning: unused variable 'a' [-Wunused-variable]
10 | int n,a=1,x;
| ^
main.cpp:10:15: warning: unused variable 'x' [-Wunused-variable]
10 | int n,a=1,x;
| ^