Borderou de evaluare (job #3307751)
| Utilizator | Data | 22 august 2025 20:54:37 | |
|---|---|---|---|
| Problema | Virus | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:36:12: error: conflicting declaration 'typedef long long int int64_t'
36 | #define ll int64_t
| ^~~~~~~
main.cpp:82:19: note: in expansion of macro 'll'
82 | typedef long long ll;
| ^~
In file included from /usr/include/sys/types.h:155,
from /usr/include/stdlib.h:395,
from /usr/include/c++/12.2.1/bits/std_abs.h:38,
from /usr/include/c++/12.2.1/cmath:47,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from main.cpp:27:
/usr/include/bits/stdint-intn.h:27:19: note: previous declaration as 'typedef __int64_t int64_t'
27 | typedef __int64_t int64_t;
| ^~~~~~~
main.cpp: In member function 'void AhoCorasick::solve(std::string)':
main.cpp:33:20: warning: statement has no effect [-Wunused-value]
33 | #define debug(...) 0
| ^
main.cpp:368:13: note: in expansion of macro 'debug'
368 | debug("p = %\n", p);
| ^~~~~
main.cpp:33:20: warning: statement has no effect [-Wunused-value]
33 | #define debug(...) 0
| ^
main.cpp:373:13: note: in expansion of macro 'debug'
373 | debug("node == root ? %\n", node == root);
| ^~~~~
main.cpp: In function 'int __solve(int)':
main.cpp:399:29: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
399 | cout<<(where[i]->cnt)<<'\n';
| ^
In file included from /usr/include/c++/12.2.1/ostream:833,
from /usr/include/c++/12.2.1/istream:39,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54:
/usr/include/c++/12.2.1/bits/ostream.tcc:105:5: note: candidate 1: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
105 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:126:10: note: candidate 2: 'Ostream& operator<<(Ostream&, const ModInt&) [with Ostream = std::basic_ofstream<char>]'
126 | Ostream &operator<<(Ostream &str, const ModInt &x) {return str<<x.x;}
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
