Tinginiai
- [1] 2024-11-29 19:42 (67.7)
- [2] 2026-11-02 13:03 (67.7)
- [3] 2026-11-02 13:06 (0)
- [4] 2026-11-02 13:06 (100)
Taškai: 0
Compile: FAIL
tinginiai.cpp: In function ‘int main()’: tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:9:5: note: in expansion of macro ‘int’ 9 | int n, k; | ^~~ tinginiai.cpp:9:9: error: ‘n’ was not declared in this scope 9 | int n, k; | ^ tinginiai.cpp:9:12: error: ‘k’ was not declared in this scope 9 | int n, k; | ^ tinginiai.cpp:8:22: error: wrong number of template arguments (1, should be 2) 8 | #define int long long; | ^~~~ tinginiai.cpp:11:10: note: in expansion of macro ‘int’ 11 | pair<int, int> arr[n]; | ^~~ In file included from /usr/include/c++/11/bits/stl_algobase.h:64, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from tinginiai.cpp:1: /usr/include/c++/11/bits/stl_pair.h:211:12: note: provided for ‘template<class _T1, class _T2> struct std::pair’ 211 | struct pair | ^~~~ tinginiai.cpp:11:13: error: expected primary-expression before ‘,’ token 11 | pair<int, int> arr[n]; | ^ tinginiai.cpp:8:17: error: expected primary-expression before ‘long’ 8 | #define int long long; | ^~~~ tinginiai.cpp:11:15: note: in expansion of macro ‘int’ 11 | pair<int, int> arr[n]; | ^~~ tinginiai.cpp:11:18: error: expected primary-expression before ‘>’ token 11 | pair<int, int> arr[n]; | ^ tinginiai.cpp:11:20: error: ‘arr’ was not declared in this scope 11 | pair<int, int> arr[n]; | ^~~ tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:13:5: note: in expansion of macro ‘int’ 13 | int redo = k; | ^~~ tinginiai.cpp:13:9: error: ‘redo’ was not declared in this scope 13 | int redo = k; | ^~~~ tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:14:9: note: in expansion of macro ‘int’ 14 | for(int i = 0; i <= k; i++){ | ^~~ tinginiai.cpp:14:13: error: ‘i’ was not declared in this scope 14 | for(int i = 0; i <= k; i++){ | ^ tinginiai.cpp:14:26: error: expected ‘)’ before ‘;’ token 14 | for(int i = 0; i <= k; i++){ | ~ ^ | ) tinginiai.cpp:14:28: error: ‘i’ was not declared in this scope 14 | for(int i = 0; i <= k; i++){ | ^ tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:17:9: note: in expansion of macro ‘int’ 17 | for(int i = 0; i < n; i++){ | ^~~ tinginiai.cpp:17:25: error: expected ‘)’ before ‘;’ token 17 | for(int i = 0; i < n; i++){ | ~ ^ | ) tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:24:9: note: in expansion of macro ‘int’ 24 | for(int i = 0; i < n; i++){ | ^~~ tinginiai.cpp:24:25: error: expected ‘)’ before ‘;’ token 24 | for(int i = 0; i < n; i++){ | ~ ^ | ) tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:28:5: note: in expansion of macro ‘int’ 28 | int job = -1; | ^~~ tinginiai.cpp:28:9: error: ‘job’ was not declared in this scope 28 | int job = -1; | ^~~ tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:29:9: note: in expansion of macro ‘int’ 29 | for(int i = n-1; i >= 0; i--){ | ^~~ tinginiai.cpp:29:28: error: expected ‘)’ before ‘;’ token 29 | for(int i = n-1; i >= 0; i--){ | ~ ^ | ) tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:35:5: note: in expansion of macro ‘int’ 35 | int ats = 0; | ^~~ tinginiai.cpp:35:9: error: ‘ats’ was not declared in this scope; did you mean ‘abs’? 35 | int ats = 0; | ^~~ | abs tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:36:9: note: in expansion of macro ‘int’ 36 | for(int i = 0; i < n; i++){ | ^~~ tinginiai.cpp:36:25: error: expected ‘)’ before ‘;’ token 36 | for(int i = 0; i < n; i++){ | ~ ^ | ) tinginiai.cpp:8:22: error: declaration does not declare anything [-fpermissive] 8 | #define int long long; | ^~~~ tinginiai.cpp:42:9: note: in expansion of macro ‘int’ 42 | for(int i = 0; i < redo; i++){ | ^~~ tinginiai.cpp:42:28: error: expected ‘)’ before ‘;’ token 42 | for(int i = 0; i < redo; i++){ | ~ ^ | )
| nr. | result | time | message |
|---|
