Borderou de evaluare (job #1332405)

Utilizator handsonthewheelSandel Georgel handsonthewheel Data 1 februarie 2015 23:00:51
Problema Cmmmc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:10: error: size of array ‘P’ is too large int P[N/2]; ^ user.cpp: In function ‘void ciuruiala()’: user.cpp:10:5: error: ‘P’ was not declared in this scope P[0]=2; ^ user.cpp: In function ‘int sol(int)’: user.cpp:23:28: error: ‘P’ was not declared in this scope for (i=0;i<=10000&&1LL*P[i]*P[i]<=n;i++){ ^ user.cpp:29:14: error: ‘P’ was not declared in this scope if (n>1&&1LL*P[i]*P[i]>n){ ^ user.cpp: In function ‘int main()’: user.cpp:35:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("cmmmc.in", "r", stdin); ^ user.cpp:36:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("cmmmc.out", "w", stdout); ^ user.cpp:39:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ user.cpp:41:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x); ^

Ceva nu functioneaza?