Borderou de evaluare (job #2229480)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 6 august 2018 21:28:49
Problema Pitagora2 Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:7:13: error: ‘j’ was not declared in this scope for(j=0;n%i==0;n/=i,j++); ^ user.cpp:8:12: error: ‘j’ was not declared in this scope if(j) ^ user.cpp:9:15: error: ‘k’ was not declared in this scope c[k]=i,d[k++]=j; ^ user.cpp:12:11: error: ‘k’ was not declared in this scope c[k]=n,d[k++]=1; ^ user.cpp:13:15: error: ‘k’ was not declared in this scope for(i=0;i<k;i++) ^ user.cpp:14:9: error: ‘j’ was not declared in this scope for(j=0;j<k;j++) { ^ user.cpp:15:13: error: ‘o’ was not declared in this scope for(o=q=1;q<=d[i];q++) { ^ user.cpp:15:15: error: ‘q’ was not declared in this scope for(o=q=1;q<=d[i];q++) { ^ user.cpp:17:17: error: ‘w’ was not declared in this scope for(w=o,p=1;p<=d[j];p++) { ^ user.cpp:17:21: error: ‘p’ was not declared in this scope for(w=o,p=1;p<=d[j];p++) { ^ user.cpp:26:19: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if((y-i)&1==0) { ~^~~ user.cpp:5:95: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pitagora2.in","r",stdin),freopen("pitagora2.out","w",stdout),scanf("%d",&n),r=n*n; ^ user.cpp:5:95: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:5:95: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?