Borderou de evaluare (job #2480003)
Utilizator | Data | 24 octombrie 2019 19:02:01 | |
---|---|---|---|
Problema | Fractii | 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:12:16: warning: right operand of comma operator has no effect [-Wunused-value]
for (a = 1, a <= n, a++)
~~^~~~
main.cpp:12:25: error: expected ';' before ')' token
for (a = 1, a <= n, a++)
^
main.cpp:29:1: error: expected primary-expression at end of input
}
^
main.cpp:29:1: error: expected ';' at end of input
main.cpp:29:1: error: expected primary-expression at end of input
main.cpp:29:1: error: expected ')' at end of input
main.cpp:29:1: error: expected statement at end of input
main.cpp:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (a = 1, a <= n, a++)
^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
main.cpp:10:9: warning: unused variable 'nr' [-Wunused-variable]
int n, nr = n * n, a, b;
^~
main.cpp:10:24: warning: unused variable 'b' [-Wunused-variable]
int n, nr = n * n, a, b;
^
main.cpp:29:1: error: expected '}' at end of input
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !