Borderou de evaluare (job #2450468)
Utilizator | Data | 23 august 2019 14:24:19 | |
---|---|---|---|
Problema | Kprime | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:45:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i + k < pos.size(); ++i)
~~~~~~^~~~~~~~~~~~
main.cpp:46:12: error: expected primary-expression before 'long'
res += long long((pos[i] - pos[i - 1]) * (pos[i + k] - pos[i + k - 1]));
^~~~
main.cpp:27:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("kprime.in", "r", stdin);
^
main.cpp:28:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("kprime.out", "w", stdout);
^
main.cpp:31:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:32:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
main.cpp:38:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !