Borderou de evaluare (job #1315854)

Utilizator cernat.catallinFMI Cernat Catalin Stefan cernat.catallin Data 13 ianuarie 2015 10:43:13
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:16: error: expected initializer before numeric constant const int Nmax 2000005; ^ user.cpp:9:12: error: variable ‘std::ifstream in’ has initializer but incomplete type ifstream in("ciur.in"); ^ user.cpp:10:13: error: variable ‘std::ofstream out’ has initializer but incomplete type ofstream out("ciur.out"); ^ user.cpp:12:8: error: ‘Nmax’ was not declared in this scope bitset<Nmax> v; ^ user.cpp:12:12: error: template argument 1 is invalid bitset<Nmax> v; ^ user.cpp:12:15: error: invalid type in declaration before ‘;’ token bitset<Nmax> v; ^ user.cpp: In function ‘int64 ciur(int64)’: user.cpp:16:11: error: invalid types ‘int[int64 {aka long long int}]’ for array subscript if (!v[i]) ^ user.cpp:18:8: error: invalid types ‘int[int64 {aka long long int}]’ for array subscript v[j] = 1; ^ user.cpp:20:11: error: invalid types ‘int[int64 {aka long long int}]’ for array subscript if (!v[i]) ++total; ^ user.cpp:20:16: error: ‘total’ was not declared in this scope if (!v[i]) ++total; ^ user.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^

Ceva nu functioneaza?