Borderou de evaluare (job #1866535)
Utilizator | Data | 3 februarie 2017 11:41:32 | |
---|---|---|---|
Problema | Arbkset | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:114:11: error: redefinition of ‘const int N’
const int N = 2001000;
^
user.cpp:15:11: error: ‘const int N’ previously defined here
const int N = 15100;
^
user.cpp:121:5: error: redefinition of ‘int n’
int n, m;
^
user.cpp:18:5: error: ‘int n’ previously declared here
int n, k, c[N], p[N], d[2][N][K];
^
user.cpp: In function ‘void calc()’:
user.cpp:191:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < poz.size(); ++i)
^
user.cpp:184:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
user.cpp:188:9: warning: unused variable ‘r’ [-Wunused-variable]
int r = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:198:5: error: redefinition of ‘int main()’
int main() {
^
user.cpp:90:5: error: ‘int main()’ previously defined here
int main() {
^
user.cpp:199:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
user.cpp: In function ‘void sol()’:
user.cpp:35:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &p[i]);
^
user.cpp:38:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:92:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbkset.in", "r", stdin);
^
user.cpp:93:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbkset.out", "w", stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:200:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.in", "r", stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !