Borderou de evaluare (job #1839224)

Utilizator rolterBora Vlad rolter Data 2 ianuarie 2017 16:50:01
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:3:1: error: unknown type name ‘using’ using namespace std; ^ user.c:3:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’ using namespace std; ^ user.c:6:6: error: variably modified ‘p’ at file scope char p[MAX]; ^ user.c: In function ‘main’: user.c:20:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=] scanf("%d", &k); ^ user.c:25:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", k * k); ^ user.c:17:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("prim.in", "r", stdin); ^ user.c:18:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("prim.out", "w", stdout); ^ user.c:20:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.c: In function ‘elimina’: user.c:47:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?