Borderou de evaluare (job #748729)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bradul (clasa a 9-a) | Compilator | cpp-32 |
Rundă | lasm_01_12_2023_clasa11 | Status | evaluat |
Dată | 1 dec. 2023 17:23:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:5: error: size '4000000004' of array 'P' exceeds maximum object size '2147483647'
5 | int P[1000000001];
| ^
main.cpp: In function 'int main()':
main.cpp:39:13: error: 'P' was not declared in this scope
39 | if(!P[i]){
| ^
main.cpp:49:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
49 | for(int i=0; i<A[r].size(); i++){
| ~^~~~~~~~~~~~
main.cpp:50:13: error: 'P' was not declared in this scope
50 | if(!P[A[r][i]]){
| ^
main.cpp:72:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
72 | for(int i=0; i<A[rs1].size(); i++){
| ~^~~~~~~~~~~~~~