Borderou de evaluare (job #1042385)

Utilizator Iustin_BulimarFMI Iustin Bulimar Iustin_Bulimar Data 26 noiembrie 2013 22:49:06
Problema Subsecventa de suma maxima Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:23: error: expected unqualified-id before ‘;’ token long long n, s, k, d, ; ^ user.cpp: In function ‘void ciur()’: user.cpp:16:5: error: ‘p’ was not declared in this scope p[1]=2; ^ user.cpp:18:29: error: invalid types ‘const int[int]’ for array subscript for(i=4; i<=y; i+=2) x[i]=1; ^ user.cpp:20:15: error: invalid types ‘const int[int]’ for array subscript if(x[i]==0) ^ user.cpp:24:43: error: invalid types ‘const int[int]’ for array subscript for(j=i*i; j<=y; j+=i) x[j]=1; ^ user.cpp: In function ‘int main()’: user.cpp:35:13: error: ‘i’ was not declared in this scope for(i=1; i<=k; i++) ^ user.cpp:37:13: error: ‘j’ was not declared in this scope j=0; ^ user.cpp:38:21: error: ‘p’ was not declared in this scope while(n%p[i]==0) ^ user.cpp:52:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?