Sudurtiniai žodžiai
- [1] 2017-10-07 13:00 (0)
- [2] 2017-10-07 15:42 (0)
- [3] 2017-10-07 15:44 (100)
Taškai: 0
Compile: OK
sudurtinis.cpp: In function ‘bool compare(char*, char*)’: sudurtinis.cpp:15:29: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; c1[i] != NULL || c2[i] != NULL; i++){ ^ sudurtinis.cpp:15:46: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; c1[i] != NULL || c2[i] != NULL; i++){ ^ sudurtinis.cpp:16:21: warning: NULL used in arithmetic [-Wpointer-arith] if(c1[i] == NULL || c2[i] == NULL){ ^ sudurtinis.cpp:16:38: warning: NULL used in arithmetic [-Wpointer-arith] if(c1[i] == NULL || c2[i] == NULL){ ^ sudurtinis.cpp: In function ‘int main()’: sudurtinis.cpp:35:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); ^ sudurtinis.cpp:37:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", cstr1); ^ sudurtinis.cpp:38:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", cstr2); ^
nr. | result | time | message |
---|---|---|---|
1 | False | 1.08 s | Time limit exceeded (wall clock) |