Borderou de evaluare (job #1389184)
Utilizator | Data | 16 martie 2015 08:41:06 | |
---|---|---|---|
Problema | CMMDC | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool prim(long unsigned int)’:
user.cpp:16:30: error: expected primary-expression before ‘unsigned’
for (unsigned i = 2; i < unsigned long(sqrt(double(n))); ++i)
^
user.cpp:16:30: error: expected ‘;’ before ‘unsigned’
user.cpp:16:30: error: expected primary-expression before ‘unsigned’
user.cpp:16:30: error: expected ‘)’ before ‘unsigned’
user.cpp:16:64: error: ‘i’ was not declared in this scope
for (unsigned i = 2; i < unsigned long(sqrt(double(n))); ++i)
^
user.cpp:16:65: error: expected ‘;’ before ‘)’ token
for (unsigned i = 2; i < unsigned long(sqrt(double(n))); ++i)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !