Borderou de evaluare (job #2466719)
Utilizator | Data | 2 octombrie 2019 20:28:13 | |
---|---|---|---|
Problema | Lant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int solve()':
main.cpp:35:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < v.size() ; i ++)
~~^~~~~~~~~~
main.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0 ; j < G[i].size() ; j ++)
~~^~~~~~~~~~~~~
main.cpp:39:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < v.size() ; i ++)
~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:50:19: error: 'gets' was not declared in this scope
while(gets(aux))
^
main.cpp:56:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < s.length() ; i ++)
~~^~~~~~~~~~~~
main.cpp:60:86: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((i > 0 && !isalpha(s[i]) && isalpha(s[i - 1])) || (isalpha(s[i]) && i == s.length() - 1))
~~^~~~~~~~~~~~~~~~~
main.cpp:68:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < v.size() - 1 ; i ++)
~~^~~~~~~~~~~~~~
main.cpp:69:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = i + 1 ; j < v.size() ; j ++)
~~^~~~~~~~~~
main.cpp:46:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("lant.in" , "r" , stdin);
^
main.cpp:47:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("lant.out" , "w" , stdout);
^
main.cpp:49:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n" , &k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !