Borderou de evaluare (job #621272)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numere Apropiate (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 dec. 2021 18:42:41 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: expected ',' or ';' before 'ofstream'
8 | ofstream out("nrapp.out")
| ^~~~~~~~
main.cpp:12:8: error: 'maxn' was not declared in this scope
12 | int st[maxn], dr[maxn], v[maxn];
| ^~~~
main.cpp:12:18: error: 'maxn' was not declared in this scope
12 | int st[maxn], dr[maxn], v[maxn];
| ^~~~
main.cpp:12:27: error: 'maxn' was not declared in this scope
12 | int st[maxn], dr[maxn], v[maxn];
| ^~~~
main.cpp: In function 'int main()':
main.cpp:19:13: error: 'v' was not declared in this scope
19 | in>>v[i];
| ^
main.cpp:22:39: error: 'v' was not declared in this scope
22 | while(stiva.empty()==false && v[stiva.top()]>=v[i])
| ^
main.cpp:25:13: error: 'st' was not declared in this scope; did you mean 'std'?
25 | st[i]=0;
| ^~
| std
main.cpp:27:13: error: 'st' was not declared in this scope; did you mean 'std'?
27 | st[i]=stiva.top();
| ^~
| std
main.cpp:31:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
31 | while(stiva.empty()==false)
| ^~~~~
main.cpp:34:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
34 | for(int i=n;>=1;i--)
| ^~~
main.cpp:34:21: error: expected primary-expression before '>=' token
34 | for(int i=n;>=1;i--)
| ^~
main.cpp:36:39: error: 'v' was not declared in this scope
36 | while(stiva.empty()==false && v[stiva.top()]>=v[i])
| ^
main.cpp:39:13: error: 'dr' was not declared in this scope
39 | dr[i]=n+1;
| ^~
main.cpp:41:13: error: 'dr' was not declared in this scope
41 | dr[i]=stiva.top();
| ^~
main.cpp:53:13: error: 'out' was not declared in this scope
53 | out << st[poz] << "\n";
| ^~~
main.cpp:53:20: error: 'st' was not declared in this scope; did you mean 'std'?
53 | out << st[poz] << "\n";