Borderou de evaluare (job #2503049)

Utilizator ancaoxoxSfia Anca ancaoxox Data 2 decembrie 2019 11:19:39
Problema Stramosi 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:29:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j=0; j<=18; j++) ^~~ main.cpp:32:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(x) ^~ main.cpp:15:21: warning: unused variable 'k' [-Wunused-variable] int n, m, i, j, k, p, q, maxx, x; ^ main.cpp:15:30: warning: unused variable 'maxx' [-Wunused-variable] int n, m, i, j, k, p, q, maxx, x; ^~~~ main.cpp: At global scope: main.cpp:42:5: error: expected unqualified-id before 'return' return 0; ^~~~~~ main.cpp:43:1: error: expected declaration before '}' token } ^ main.cpp: In function 'int main()': main.cpp:11:33: 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); ^ main.cpp:12:35: 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); ^ main.cpp:16:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ main.cpp:18:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &strm[0][i]); ^ main.cpp:28:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &p, &q); ^ Non zero exit status: 1

Ceva nu functioneaza?