Borderou de evaluare (job #773860)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Sort2dist (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 apr. 2024 12:35:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: expected unqualified-id before '__int128'
10 | __int128 s[MAX], poz, x, n, i, j;
| ^~~~~~~~
main.cpp:11:31: error: wrong number of template arguments (1, should be 2)
11 | vector<pair<__int128, __int128>> v, sol;
| ^~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:64,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/algorithm:60,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:51,
from main.cpp:2:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_pair.h:187:12: note: provided for 'template<class _T1, class _T2> struct std::pair'
187 | struct pair
| ^~~~
main.cpp:11:37: error: template argument 1 is invalid
11 | vector<pair<__int128, __int128>> v, sol;
| ^~~
main.cpp:11:37: error: template argument 2 is invalid
main.cpp:15:28: error: '__int128_t' has not been declared
15 | operator<<( ostream& dest, __int128_t value )
| ^~~~~~~~~~
main.cpp: In function 'std::ostream& operator<<(std::ostream&, int)':
main.cpp:19:9: error: '__uint128_t' was not declared in this scope; did you mean '__uint8_t'?
19 | __uint128_t tmp = value < 0 ? -value : value;
| ^~~~~~~~~~~
| __uint8_t
main.cpp:25:32: error: 'tmp' was not declared in this scope; did you mean 'tm'?
25 | *d = "0123456789"[ tmp % 10 ];
| ^~~
| tm
main.cpp:27:19: error: 'tmp' was not declared in this scope; did you mean 'tm'?
27 | } while ( tmp != 0 );
| ^~~
| tm
main.cpp: At global scope:
main.cpp:40:1: error: expected unqualified-id before '__int128'
40 | __int128 read() {
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:60:5: error: 'n' was not declared in this scope; did you mean 'yn'?
60 | n = read();
| ^
| yn
main.cpp:60:13: error: too few arguments to function 'ssize_t read(int, void*, size_t)'
60 | n = read();
| ~~~~^~
In file included from /usr/include/unistd.h:1214,
from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/csignal:42,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:116: