Tiltai ir tuneliai

Taškai: 60

Compile: OK

tiltai.cpp: In function ‘bool compare(char*, char*)’: tiltai.cpp:23:29: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; c1[i] != NULL || c2[i] != NULL; i++){ ^ tiltai.cpp:23:46: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; c1[i] != NULL || c2[i] != NULL; i++){ ^ tiltai.cpp:24:21: warning: NULL used in arithmetic [-Wpointer-arith] if(c1[i] == NULL || c2[i] == NULL){ ^ tiltai.cpp:24:38: warning: NULL used in arithmetic [-Wpointer-arith] if(c1[i] == NULL || c2[i] == NULL){ ^ tiltai.cpp: In function ‘int main()’: tiltai.cpp:44:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); ^ tiltai.cpp:46:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", cstr1); ^ tiltai.cpp:47:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", cstr2); ^

nr.resulttimemessage
1True0.0 sok
2True0.0 sok
3True0.0 sok
4False1.08 sTime limit exceeded (wall clock)
5False1.076 sTime limit exceeded (wall clock)