Borderou de evaluare (job #816556)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Portofel (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 27 mar. 2025 19:42:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:72: error: expected initializer before '.' token
16 | int fr[100005],n,i,j,m,maxi,v[100005],w[100005],z,k,y[100005],x[100005].s;
| ^
main.cpp: In function 'int main()':
main.cpp:23:9: error: 'fr1' was not declared in this scope; did you mean 'fr'?
23 | fr1[v[i]]++;
| ^~~
| fr
main.cpp:28:9: error: 'fr2' was not declared in this scope; did you mean 'fr'?
28 | fr2[w[i]]++;
| ^~~
| fr
main.cpp:31:12: error: 'fr1' was not declared in this scope; did you mean 'fr'?
31 | if(fr1[i]+fr2[i]!=0)
| ^~~
| fr
main.cpp:31:19: error: 'fr2' was not declared in this scope; did you mean 'fr'?
31 | if(fr1[i]+fr2[i]!=0)
| ^~~
| fr
main.cpp:34:12: error: 'fr1' was not declared in this scope; did you mean 'fr'?
34 | if(fr1[i]!=0)
| ^~~
| fr
main.cpp:35:13: error: 'x' was not declared in this scope
35 | x[++k]=i;
| ^
main.cpp:36:12: error: 'fr2' was not declared in this scope; did you mean 'fr'?
36 | if(fr2[i]!=0)
| ^~~
| fr
main.cpp:40:5: error: 'l' was not declared in this scope
40 | l=1;
| ^
main.cpp:42:15: error: 'x' was not declared in this scope
42 | while(x[i+1]>y[j])
| ^
main.cpp:44:15: error: 'x' was not declared in this scope
44 | while(x[i]>y[l])
| ^
main.cpp:47:13: error: 's' was not declared in this scope
47 | s++;
| ^
main.cpp:49:22: error: 's' was not declared in this scope
49 | out<<maxi<<endl<<s;
| ^