Borderou de evaluare (job #688757)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Partprim (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 ian. 2023 19:22:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int eratostene(int)':
main.cpp:15:25: error: a function-definition is not allowed here before '{' token
15 | void spr(int n, int &nr){
| ^
main.cpp:33:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
33 | int main()
| ^~
main.cpp:33:9: note: remove parentheses to default-initialize a variable
33 | int main()
| ^~
| --
main.cpp:33:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:34:1: error: a function-definition is not allowed here before '{' token
34 | {
| ^
main.cpp:46:2: error: expected '}' at end of input
46 | }
| ^
main.cpp:7:25: note: to match this '{'
7 | int eratostene( int n ) {
| ^
main.cpp:46:2: warning: no return statement in function returning non-void [-Wreturn-type]
46 | }
| ^