Borderou de evaluare (job #2974246)
Utilizator | Data | 3 februarie 2023 17:15:15 | |
---|---|---|---|
Problema | Bob | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: expected initializer before 'pair'
9 | pair <int, int> st[nmax], dr[nmax];
| ^~~~
main.cpp: In function 'int main()':
main.cpp:22:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(j = 0; j < s[i].size(); j++){
| ~~^~~~~~~~~~~~~
main.cpp:24:21: error: 'f' was not declared in this scope
24 | f[j] = 1;
| ^
main.cpp:28:20: error: 'f' was not declared in this scope
28 | if(f[j] == 0){
| ^
main.cpp:35:21: error: 'f' was not declared in this scope
35 | f[j] = 0;
| ^
main.cpp:36:17: error: 'st' was not declared in this scope; did you mean 't'?
36 | st[i].second = 1;
| ^~
| t
main.cpp:38:13: error: 'st' was not declared in this scope; did you mean 't'?
38 | st[i].first = ans;
| ^~
| t
main.cpp:48:13: error: 'f' was not declared in this scope
48 | f[i] = 0;
| ^
main.cpp:50:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(j = 0; j < s[i].size(); j++){
| ~~^~~~~~~~~~~~~
main.cpp:52:21: error: 'f' was not declared in this scope
52 | f[j] = 1;
| ^
main.cpp:56:20: error: 'f' was not declared in this scope
56 | if(f[j] == 0){
| ^
main.cpp:63:21: error: 'f' was not declared in this scope
63 | f[j] = 0;
| ^
main.cpp:64:17: error: 'dr' was not declared in this scope
64 | dr[i].second = 1;
| ^~
main.cpp:66:13: error: 'dr' was not declared in this scope
66 | dr[i].first = ans;
| ^~
main.cpp:71:16: error: 'st' was not declared in this scope; did you mean 't'?
71 | if(st[i - 1] + dr[i + 1] == rasp)
| ^~
| t
main.cpp:71:28: error: 'dr' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !