Borderou de evaluare (job #711899)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Moștenire (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 mar. 2023 18:32:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:27: error: size of array 'a' exceeds maximum object size '2147483647'
10 | int cif[100000],v[100001],a[100002][100000],x[100001][10003],vf[100001];
| ^
main.cpp:10:45: error: size of array 'x' exceeds maximum object size '2147483647'
10 | int cif[100000],v[100001],a[100002][100000],x[100001][10003],vf[100001];
| ^
cc1plus: error: '::main' must return 'int'
main.cpp: In function 'int main()':
main.cpp:26:18: error: 'a' was not declared in this scope
26 | cin>>a[i][1]>>a[i][2];
| ^
main.cpp:35:27: error: 'a' was not declared in this scope
35 | for(int i=min(a[h][1],a[h][2]);i<=max(a[h][1],a[h][2]);i++)
| ^
main.cpp:55:18: error: 'a' was not declared in this scope
55 | cin>>a[i][1]>>a[i][2];
| ^
main.cpp:68:17: error: 'x' was not declared in this scope
68 | x[cnt][i]=v[i];
| ^
main.cpp:70:27: error: 'a' was not declared in this scope
70 | for(int i=min(a[h][1],a[h][2]);i<=max(a[h][1],a[h][2]);i++)
| ^
main.cpp:79:13: error: 'x' was not declared in this scope
79 | x[cnt][i]=v[i];
| ^
main.cpp:92:22: error: 'x' was not declared in this scope
92 | v[++cnt]=x[i][poz];
| ^
main.cpp:81:26: warning: unused variable 'cnt2' [-Wunused-variable]
81 | int maxx=0,poz=0,cnt2=cnt;
| ^~~~