Borderou de evaluare (job #1977203)

Utilizator rngessusRadu Comsa rngessus Data 5 mai 2017 09:00:37
Problema Numere Prime 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:9:5: error: expected ‘,’ or ‘;’ before ‘int’ int k, n=9, d, x=1,c=0, ok=1; ^ user.cpp:10:7: error: ‘k’ was not declared in this scope f>>k; ^ user.cpp:12:12: error: ‘x’ was not declared in this scope {do{x++; ^ user.cpp:13:11: error: ‘c’ was not declared in this scope c=0; ^ user.cpp:14:15: error: ‘d’ was not declared in this scope for(d=2;d<=x;d++) ^ user.cpp:16:18: error: ‘c’ was not declared in this scope }while(c!=1) ^ user.cpp:17:9: error: expected ‘;’ before ‘while’ while(n%x!=0) ^ user.cpp:17:15: error: ‘n’ was not declared in this scope while(n%x!=0) ^ user.cpp:17:17: error: ‘x’ was not declared in this scope while(n%x!=0) ^ user.cpp:20:10: error: ‘n’ was not declared in this scope g<<n; ^

Ceva nu functioneaza?