Borderou de evaluare (job #1284455)

Utilizator valibauConstanda Valentin valibau Data 6 decembrie 2014 15:44:11
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:8:5: error: expected initializer before ‘int’ int n,i,p,nr=0; ^ user.cpp:9:10: error: ‘n’ was not declared in this scope cin>>n; ^ user.cpp:10:9: error: ‘p’ was not declared in this scope for(p=2; p<=n; p++) ^ user.cpp:11:9: error: ‘ok’ was not declared in this scope ok[p]=1; ^ user.cpp:12:9: error: ‘p’ was not declared in this scope for(p=2; p<=n; p++) ^ user.cpp:15:12: error: ‘ok’ was not declared in this scope if(ok[p]) ^ user.cpp:17:13: error: ‘nr’ was not declared in this scope nr++; ^ user.cpp:18:17: error: ‘i’ was not declared in this scope for(i=1; i<=n/p; i++) ^ user.cpp:22:11: error: ‘nr’ was not declared in this scope cout<<nr; ^

Ceva nu functioneaza?