Borderou de evaluare (job #2672021)

Utilizator VarothexVartic Mihai-Vlad Varothex Data 12 noiembrie 2020 22:20:21
Problema Semne3 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:13:11: error: 'gets' was not declared in this scope gets(s); ^ main.cpp:20:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (k = i; s[k] == '>'; k++); ^~~ main.cpp:21:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' l = k-i; ^ main.cpp:10:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("semne3.in","r",stdin); ^ main.cpp:11:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("semne3.out","w",stdout); ^ main.cpp:12:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ Non zero exit status: 1

Ceva nu functioneaza?