Borderou de evaluare (job #1337216)

Utilizator isa_fares_mudiFares Mohamad isa_fares_mudi Data 8 februarie 2015 19:03:51
Problema Divizori Primi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:10:14: error: ‘fin’ was not declared in this scope fscanf ( fin,"%d",&n ) ; ^ user.cpp:12:11: error: ‘i’ was not declared in this scope for ( i = 2 ; i <= 1000000 ; i += 2 ) ^ user.cpp:14:11: error: ‘i’ was not declared in this scope for ( i = 3 ; i <= 1000000 ; i += 2 ) ^ user.cpp:22:5: error: ‘i’ was not declared in this scope i = 0 ; ^ user.cpp:28:17: error: ‘a’ was not declared in this scope a[i][j] = j ; ^ user.cpp:30:17: error: ‘a’ was not declared in this scope a[i][j] = a[i][j-1] ; ^ user.cpp:34:19: error: ‘fout’ was not declared in this scope fprintf ( fout,"%d\n",m[k][n] ) ; ^ user.cpp:9:18: warning: unused variable ‘lim’ [-Wunused-variable] int t, n, k, lim, j ; ^ user.cpp:7:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ( "divprim.in","r",stdin ) ; ^ user.cpp:8:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ( "divprim.out","w",stdout ) ; ^

Ceva nu functioneaza?