Užklausos
- [1] 2023-04-25 16:16 (0)
- [2] 2023-05-09 16:18 (0)
- [3] 2023-05-12 08:24 (0)
- [4] 2023-05-19 08:30 (0)
- [5] 2024-05-18 13:38 (100)
Taškai: 0
Compile: FAIL
uzklausos.cpp:1:2: error: invalid preprocessing directive #incude; did you mean #include? 1 | #incude <bits/stdc++.h> | ^~~~~~ | include uzklausos.cpp:5:1: error: ‘vector’ does not name a type 5 | vector<pair<int, int>> a; | ^~~~~~ uzklausos.cpp:6:1: error: ‘vector’ does not name a type 6 | vector<pair<pair<int, int>, int>> q; | ^~~~~~ uzklausos.cpp:8:14: error: expected unqualified-id before ‘)’ token 8 | struct medis() | ^ uzklausos.cpp:15:7: error: elements of array ‘medis A [200000]’ have incomplete type 15 | medis A[200000]; | ^ uzklausos.cpp:15:7: error: storage size of ‘A’ isn’t known uzklausos.cpp: In function ‘int main()’: uzklausos.cpp:20:5: error: ‘cin’ was not declared in this scope 20 | cin>>n; | ^~~ uzklausos.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | #incude <bits/stdc++.h> uzklausos.cpp:25:9: error: ‘a’ was not declared in this scope 25 | a.push_back({in, i+1}); | ^ uzklausos.cpp:27:11: error: ‘a’ was not declared in this scope 27 | sort (a.begin(), a.end()); | ^ uzklausos.cpp:27:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 27 | sort (a.begin(), a.end()); | ^~~~ | short uzklausos.cpp:34:11: error: request for member ‘push_back’ in ‘q’, which is of non-class type ‘int’ 34 | q.push_back({k, {i, j}}); | ^~~~~~~~~ uzklausos.cpp:36:12: error: request for member ‘begin’ in ‘q’, which is of non-class type ‘int’ 36 | sort(q.begin(), q.end(), greater<int>()); | ^~~~~ uzklausos.cpp:36:23: error: request for member ‘end’ in ‘q’, which is of non-class type ‘int’ 36 | sort(q.begin(), q.end(), greater<int>()); | ^~~ uzklausos.cpp:36:30: error: ‘greater’ was not declared in this scope 36 | sort(q.begin(), q.end(), greater<int>()); | ^~~~~~~ uzklausos.cpp:36:38: error: expected primary-expression before ‘int’ 36 | sort(q.begin(), q.end(), greater<int>()); | ^~~
nr. | result | time | message |
---|