Borderou de evaluare (job #1904959)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 5 martie 2017 21:00:40
Problema Exp Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:1: error: expected unqualified-id before ‘short’ short int prime[3245] = {2, 3, 5, 7, 11, 13, 17, 19, 23, ^ user.cpp: In function ‘int main()’: user.cpp:310:28: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi %hi", &M, &N); ^ user.cpp:310:28: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:313:29: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi", &number); ^ user.cpp:316:20: error: ‘prime’ was not declared in this scope for(i = 0; prime[i] <= sqrtNumber; i++){ ^ user.cpp:329:19: error: ‘prime’ was not declared in this scope if(factor[prime[i]] == 0) continue; ^ user.cpp:330:19: error: ‘prime’ was not declared in this scope if(factor[prime[i]] % M == 0){ ^ user.cpp:310:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi %hi", &M, &N); ^ user.cpp:313:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi", &number); ^

Ceva nu functioneaza?