foo.cc:178:2: error: stray '#' in program
}#include <bits/stdc++.h>
^
foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
foo.cc:39:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (g == 0 && i >= s.size() && i >= b.s.size()) break;
~~^~~~~~~~~~~
foo.cc:39:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (g == 0 && i >= s.size() && i >= b.s.size()) break;
~~^~~~~~~~~~~~~
foo.cc:41:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < s.size()) x += s[i];
~~^~~~~~~~~~
foo.cc:42:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < b.s.size()) x += b.s[i];
~~^~~~~~~~~~~~
foo.cc: In member function 'BigInteger BigInteger::operator-(const BigInteger&) const':
foo.cc:52:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (g == 0 && i >= s.size() && i >= b.s.size()) break;
~~^~~~~~~~~~~
foo.cc:52:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (g == 0 && i >= s.size() && i >= b.s.size()) break;
~~^~~~~~~~~~~~~
foo.cc:54:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < b.s.size()) x -= b.s[i];
~~^~~~~~~~~~~~
foo.cc: In member function 'BigInteger BigInteger::operator*(const BigInteger&) const':
foo.cc:64:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
~^~~~~~~~~
foo.cc:64:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
~^~~~~~~~~~~
foo.cc:66:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (g ==0 && i >= v.size()) break;
~~^~~~~~~~~~~
foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
foo.cc:127:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < strlen(buf); j++) out << buf[j];
~~^~~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:178:3: error: 'include' does not name a type
}#include <bits/stdc++.h>
^~~~~~~
foo.cc:183:8: error: redefinition of 'struct BigInteger'
struct BigInteger {
^~~~~~~~~~
foo.cc:6:8: note: previous definition of 'struct BigInteger'
struct BigInteger {
^~~~~~~~~~
foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
foo.cc:299:10: error: redefinition of 'std::ostream& operator<<(std::ostream&, const BigInteger&)'
ostream& operator << (ostream& out, const BigInteger& x) {
^~~~~~~~
foo.cc:122:10: note: 'std::ostream& operator<<(std::ostream&, const BigInteger&)' previously defined here
ostream& operator << (ostream& out, const BigInteger& x) {
^~~~~~~~
foo.cc:304:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < strlen(buf); j++) out << buf[j];
~~^~~~~~~~~~~~~
foo.cc: In function 'std::istream& operator>>(std::istream&, BigInteger&)':
foo.cc:309:10: error: redefinition of 'std::istream& operator>>(std::istream&, BigInteger&)'
istream& operator >> (istream& in, BigInteger& x) {
^~~~~~~~
foo.cc:132:10: note: 'std::istream& operator>>(std::istream&, BigInteger&)' previously defined here
istream& operator >> (istream& in, BigInteger& x) {
^~~~~~~~
foo.cc: At global scope:
foo.cc:316:11: error: redefinition of 'const int N'
const int N = 200 + 5;
^
foo.cc:139:11: note: 'const int N' previously defined here
const int N = 200 + 5;
^
foo.cc:318:5: error: redefinition of 'int n'
int n, m, pa[N << 1];
^
foo.cc:141:5: note: 'int n' previously declared here
int n, m, pa[N << 1];
^
foo.cc:318:8: error: redefinition of 'int m'
int n, m, pa[N << 1];
^
foo.cc:141:8: note: 'int m' previously declared here
int n, m, pa[N << 1];
^
foo.cc:318:20: error: redefinition of 'int pa [410]'
int n, m, pa[N << 1];
^
foo.cc:141:11: note: 'int pa [410]' previously declared here
int n, m, pa[N << 1];
^~
foo.cc:319:11: error: redefinition of 'bool vis [205]'
bool vis[N];
^
foo.cc:142:6: note: 'bool vis [205]' previously declared here
bool vis[N];
^~~
foo.cc: In function 'int findset(int)':
foo.cc:321:5: error: redefinition of 'int findset(int)'
int findset(int x) { return x == pa[x] ? x : pa[x] = findset(pa[x]); }
^~~~~~~
foo.cc:144:5: note: 'int findset(int)' previously defined here
int findset(int x) { return x == pa[x] ? x : pa[x] = findset(pa[x]); }
^~~~~~~
foo.cc: In function 'int main()':
foo.cc:323:5: error: redefinition of 'int main()'
int main() {
^~~~
foo.cc:146:5: note: 'int main()' previously defined here
int main() {
^~~~
foo.cc: In function 'int main()':
foo.cc:147:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:151:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &a, &b, &c, &d);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:324:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:328:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &a, &b, &c, &d);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。