Borderou de evaluare (job #2451425)
Utilizator | Data | 26 august 2019 18:16:25 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int read()':
main.cpp:20:69: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
H[i][j] = (1LL * H[i][j - 1] * 27 + s[j - 1] - 'a' + 1) % MOD;
^
main.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:58:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(H[v[i]].size() - 1 < lgmin) lgmin = H[v[i]].size() - 1;
~~~~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:48:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.in", "r", stdin);
^
main.cpp:49:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.out", "w", stdout);
^
main.cpp:54:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
main.cpp:57:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp: In function 'int read()':
main.cpp:14:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
main.cpp:16:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s ", s);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !