Borderou de evaluare (job #1134180)

Utilizator ionut98Bejenariu Ionut Daniel ionut98 Data 6 martie 2014 09:52:17
Problema Copaci4 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:13:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘unsigned char*’ [-Wformat=] for (i=1;i<=n;i++) scanf("%d",&h[i]); ^ user.cpp: At global scope: user.cpp:66:1: error: ‘ifstream’ does not name a type ifstream fin(IN_FILE); ^ user.cpp:67:1: error: ‘ofstream’ does not name a type ofstream fout(OUT_FILE); ^ user.cpp:70:4: error: conflicting declaration ‘long long int n’ LL n; ^ user.cpp:4:5: error: ‘n’ has a previous declaration as ‘int n’ int n,i,j,k; ^ user.cpp:41:14: error: ‘vector’ does not name a type #define VPII vector <pair <int, int> > ^ user.cpp:71:1: note: in expansion of macro ‘VPII’ VPII factors; ^ user.cpp:36:12: error: ‘vector’ does not name a type #define VB vector <bool> ^ user.cpp:72:1: note: in expansion of macro ‘VB’ VB isPrime; ^ user.cpp:37:12: error: ‘vector’ does not name a type #define VI vector <int> ^ user.cpp:73:1: note: in expansion of macro ‘VI’ VI primes; ^ user.cpp:40:13: error: ‘vector’ does not name a type #define VLL vector <LL> ^ user.cpp:74:1: note: in expansion of macro ‘VLL’ VLL compacted; ^ user.cpp: In function ‘void Erast()’: user.cpp:78:29: error: ‘sqrt’ was not declared in this scope int gyok = sqrt(double(MAX)); ^ user.cpp:79:2: error: ‘isPrime’ was not declared in this scope isPrime.RS(gyok + 1, true); ^ user.cpp:84:19: error: ‘primes’ was not declared in this scope if (isPrime[i]) primes.PB(i);

Ceva nu functioneaza?