Borderou de evaluare (job #819648)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Subsecvență de produs maxim | Compilator | cpp-32 |
Rundă | antrenament1 | Status | evaluat |
Dată | 9 apr. 2025 10:50:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: expected unqualified-id before '__int128'
12 | __int128 mxp,mip,r,v[1001];
| ^~~~~~~~
main.cpp:13:17: error: expected primary-expression before '__int128'
13 | string tostring(__int128 x){
| ^~~~~~~~
main.cpp:13:28: error: expected ',' or ';' before '{' token
13 | string tostring(__int128 x){
| ^
main.cpp: In function 'int main()':
main.cpp:24:9: error: 'v' was not declared in this scope
24 | v[i]=x;
| ^
main.cpp:26:21: error: 'v' was not declared in this scope
26 | if(n==1) return v[0];
| ^
main.cpp:27:5: error: 'mxp' was not declared in this scope; did you mean 'exp'?
27 | mxp=v[0],mip=v[0],r=v[0];
| ^~~
| exp
main.cpp:27:9: error: 'v' was not declared in this scope
27 | mxp=v[0],mip=v[0],r=v[0];
| ^
main.cpp:27:14: error: 'mip' was not declared in this scope
27 | mxp=v[0],mip=v[0],r=v[0];
| ^~~
main.cpp:27:23: error: 'r' was not declared in this scope
27 | mxp=v[0],mip=v[0],r=v[0];
| ^