Borderou de evaluare (job #1225314)
Utilizator | Data | 2 septembrie 2014 13:46:46 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:38:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < A[t].size(); ++i) {
^
user.cpp:43:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (p >= 0 && p < b.size())
^
user.cpp:45:22: error: ‘size’ was not declared in this scope
if (i < A[t][size])
^
user.cpp:48:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < a[t].size(); ++i)
^
user.cpp: In function ‘void read()’:
user.cpp:21:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &n, &m);
^
user.cpp:24:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &x);
^
user.cpp:31:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &node[i], &k[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:62:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.in", "r", stdin);
^
user.cpp:63:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !