Borderou de evaluare (job #2273885)
Utilizator | Data | 1 noiembrie 2018 09:15:49 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:2: error: expected primary-expression before '}' token
}
^
main.cpp:49:2: error: expected primary-expression before 'int'
int Nr = 0;
^~~
main.cpp:51:17: error: 'Nr' was not declared in this scope
match[0] = 1, Nr++;
^~
main.cpp:59:29: error: 'Nr' was not declared in this scope
match[ i - NA + 1 ] = 1, Nr++;
^~
main.cpp:61:17: error: 'Nr' was not declared in this scope
printf("%d\n", Nr);
^~
main.cpp:44:17: warning: unused variable 'hash2' [-Wunused-variable]
int hash1 = 0, hash2 = 0;
^~~~~
main.cpp:19:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.in", "rt", stdin);
^
main.cpp:20:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out", "wt", stdout);
^
main.cpp:22:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s", A, B);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !