Borderou de evaluare (job #2967473)
Utilizator | Data | 19 ianuarie 2023 17:53:11 | |
---|---|---|---|
Problema | Bere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:15: warning: missing terminating " character
7 | ofstream cout("br.out);
| ^
main.cpp:7:15: error: missing terminating " character
7 | ofstream cout("br.out);
| ^~~~~~~~~
main.cpp:9:30: error: expected ')' before ';' token
9 | const int NMAX = 2 * 15e4 + 1;
| ^
| )
main.cpp:7:14: note: to match this '('
7 | ofstream cout("br.out);
| ^
main.cpp:11:7: error: 'NMAX' was not declared in this scope
11 | int v[NMAX] , n , q , ind , x , sp[NMAX];
| ^~~~
main.cpp:11:36: error: 'NMAX' was not declared in this scope
11 | int v[NMAX] , n , q , ind , x , sp[NMAX];
| ^~~~
main.cpp: In function 'int main()':
main.cpp:20:42: error: 'v' was not declared in this scope
20 | for(int i = 1 ; i <= n ; i++) cin >> v[i];
| ^
main.cpp:21:43: error: 'v' was not declared in this scope
21 | for(int i = n + 1 ; i <= n + n ; i++) v[i] = v[i-n];
| ^
main.cpp:25:9: error: 'sp' was not declared in this scope
25 | sp[i] = sp[i-1] + v[i];
| ^~
main.cpp:25:27: error: 'v' was not declared in this scope
25 | sp[i] = sp[i-1] + v[i];
| ^
main.cpp:32:47: error: 'sp' was not declared in this scope; did you mean 'st'?
32 | int st = ind , dr = ind + n - 1 , m = sp[ind-1] , ans = 0;
| ^~
| st
main.cpp:40:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
40 | ans = mij - (ind-1);
| ^~~
| abs
main.cpp:47:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
47 | cout << ans << '\n';
| ^~~
| abs
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !