Sudurtiniai žodžiai

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.resulttimemessage
1False1.08 sTime limit exceeded (wall clock)