Borderou de evaluare (job #1562032)

Utilizator alittlezzCazaciuc Valentin alittlezz Data 4 ianuarie 2016 19:06:49
Problema Cub2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:1: error: ‘Function’ does not name a type Function isPrime(n) ^ user.cpp: In function ‘int main()’: user.cpp:138:29: error: ‘isPrime’ was not declared in this scope if(isPrime(f)){ ^ user.cpp:149:29: error: ‘isPrime’ was not declared in this scope if(isPrime(f)){ ^ user.cpp:157:29: error: ‘isPrime’ was not declared in this scope if(isPrime(f)){ ^ user.cpp:165:29: error: ‘isPrime’ was not declared in this scope if(isPrime(f)){ ^ user.cpp:52:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cub2.in", "r", stdin); ^ user.cpp:53:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cub2.out", "w", stdout); ^ user.cpp:54:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&p); ^ user.cpp:55:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&N,&V); ^

Ceva nu functioneaza?