Borderou de evaluare (job #2461838)
Utilizator | Data | 26 septembrie 2019 11:13:02 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:33: error: ISO C++ forbids declaration of 'numar' with no type [-fpermissive]
constexpr operator()(const &numar lhs, const &numar rhs)
^~~~~
main.cpp:11:39: error: expected ',' or '...' before 'lhs'
constexpr operator()(const &numar lhs, const &numar rhs)
^~~
main.cpp:11:60: error: ISO C++ forbids declaration of 'operator()' with no type [-fpermissive]
constexpr operator()(const &numar lhs, const &numar rhs)
^
main.cpp:19:1: error: expected unqualified-id before '}' token
};
^
main.cpp: In member function 'constexpr int Comp::operator()(const int&)':
main.cpp:13:12: error: 'lhs' was not declared in this scope
if(lhs.ncd == rhs.ncd)
^~~
main.cpp:13:23: error: 'rhs' was not declared in this scope
if(lhs.ncd == rhs.ncd)
^~~
main.cpp:17:16: error: 'lhs' was not declared in this scope
return lhs.ncd > rhs.ncd;
^~~
main.cpp:17:26: error: 'rhs' was not declared in this scope
return lhs.ncd > rhs.ncd;
^~~
main.cpp: In function 'numar getn(int)':
main.cpp:23:9: warning: unused variable 'prod' [-Wunused-variable]
int prod = 1, sum = 0;
^~~~
main.cpp:23:19: warning: unused variable 'sum' [-Wunused-variable]
int prod = 1, sum = 0;
^~~
main.cpp:24:9: warning: unused variable 'v' [-Wunused-variable]
int v[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
^
main.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !