Borderou de evaluare (job #2252169)
Utilizator | Data | 2 octombrie 2018 13:44:04 | |
---|---|---|---|
Problema | Numere Prime | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:19: warning: right operand of comma operator has no effect [-Wunused-value]
for (i=2,i<=p,i++)
~^~~
user.cpp:11:26: error: expected ‘;’ before ‘)’ token
for (i=2,i<=p,i++)
^
user.cpp:30:1: error: expected primary-expression at end of input
}
^
user.cpp:30:1: error: expected ‘;’ at end of input
user.cpp:30:1: error: expected primary-expression at end of input
user.cpp:30:1: error: expected ‘)’ at end of input
user.cpp:30:1: error: expected statement at end of input
user.cpp:11:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (i=2,i<=p,i++)
^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
user.cpp:30:1: error: expected ‘}’ at end of input
}
^
user.cpp:7:13: warning: unused variable ‘j’ [-Wunused-variable]
int n,i,j,c,nr,p=100000;
^
user.cpp:7:15: warning: unused variable ‘c’ [-Wunused-variable]
int n,i,j,c,nr,p=100000;
^
user.cpp:7:17: warning: unused variable ‘nr’ [-Wunused-variable]
int n,i,j,c,nr,p=100000;
^~
user.cpp:30:1: error: expected ‘}’ at end of input
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !