Borderou de evaluare (job #3261297)
Utilizator | Data | 5 decembrie 2024 12:44:51 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:28: error: expected ')' before ';' token
6 | ofstream fout("algsort.out";)
| ~ ^
| )
main.cpp:6:29: error: expected unqualified-id before ')' token
6 | ofstream fout("algsort.out";)
| ^
main.cpp: In function 'void Citire()':
main.cpp:11:12: error: 'n' was not declared in this scope; did you mean 'yn'?
11 | fin >> n;
| ^
| yn
main.cpp:13:16: error: 'a' was not declared in this scope
13 | fin >> a[i];
| ^
main.cpp: In function 'void Intercls(int, int, int)':
main.cpp:22:12: error: 'a' was not declared in this scope
22 | if(a[i] < a[j]) b[l++] = a[i++];
| ^
main.cpp:22:25: error: 'b' was not declared in this scope
22 | if(a[i] < a[j]) b[l++] = a[i++];
| ^
main.cpp:23:14: error: 'b' was not declared in this scope
23 | else b[l++] = a[j++];
| ^
main.cpp:25:19: error: 'b' was not declared in this scope
25 | while(i <= m) b[l++] = a[i++];
| ^
main.cpp:25:28: error: 'a' was not declared in this scope
25 | while(i <= m) b[l++] = a[i++];
| ^
main.cpp:26:20: error: 'b' was not declared in this scope
26 | while(j <= dr) b[l++] = a[j++];
| ^
main.cpp:26:29: error: 'a' was not declared in this scope
26 | while(j <= dr) b[l++] = a[j++];
| ^
main.cpp:27:33: error: 'a' was not declared in this scope
27 | for(int i = st;i <= dr;i++) a[i] = b[i];
| ^
main.cpp:27:40: error: 'b' was not declared in this scope
27 | for(int i = st;i <= dr;i++) a[i] = b[i];
| ^
main.cpp: In function 'void Afisare()':
main.cpp:43:24: error: 'n' was not declared in this scope
43 | for(int i = 1;i <= n;i++)
| ^
main.cpp:44:15: error: 'a' was not declared in this scope
44 | fout<<a[i]<<" ";
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !