Borderou de evaluare (job #1791284)
Utilizator | Data | 29 octombrie 2016 11:21:37 | |
---|---|---|---|
Problema | Parantezare optima de matrici | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i <= n; i++)
^
user.cpp:14:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i <= n; i++)
^
user.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i + 1; j <= n; j++)
^
user.cpp:16:23: error: ‘ULLONG_MAX’ was not declared in this scope
m[i][j] = ULLONG_MAX;
^
user.cpp:17:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int l = 1; l < n; l++)
^
user.cpp:18:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1, j = l + 1; i <= n - 1 && j <= n; i++, j++)
^
user.cpp:18:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1, j = l + 1; i <= n - 1 && j <= n; i++, j++)
^
user.cpp:9:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("podm.in", "r", stdin );
^
user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("podm.out", "w", stdout);
^
user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu", &n);
^
user.cpp:13:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu", &d[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !